1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2025-01-30 22:52:14 +01:00

added toolchain file

This commit is contained in:
Unknown 2019-12-07 15:31:21 +00:00
parent 7bca33ec3e
commit 4d82e229b7

9
toolchain.cmake Normal file
View File

@ -0,0 +1,9 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
get_filename_component(C_COMPILER "../../tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc" REALPATH BASE_DIR "${CMAKE_BINARY_DIR}")
get_filename_component(CXX_COMPILER "../../tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-g++" REALPATH BASE_DIR "${CMAKE_BINARY_DIR}")
get_filename_component(SYSROOT "../../sysroot" REALPATH BASE_DIR "${CMAKE_BINARY_DIR}")
set(CMAKE_C_COMPILER ${C_COMPILER})
set(CMAKE_CXX_COMPILER ${CXX_COMPILER})
set(CMAKE_SYSROOT ${SYSROOT})