2019-12-07 16:31:21 +01:00
|
|
|
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}")
|
2019-12-07 18:31:34 +01:00
|
|
|
set(SYSROOT "${CMAKE_BINARY_DIR}/../../../../tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/")
|
2019-12-07 16:31:21 +01:00
|
|
|
set(CMAKE_C_COMPILER ${C_COMPILER})
|
|
|
|
set(CMAKE_CXX_COMPILER ${CXX_COMPILER})
|
2019-12-07 18:31:34 +01:00
|
|
|
|
|
|
|
set(CMAKE_SYSROOT ${SYSROOT})
|
|
|
|
set(CMAKE_FIND_ROOT_PATH ${SYSROOT})
|
|
|
|
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|