furnace/scripts/Cross-Linux-armhf.cmake

16 lines
498 B
CMake
Raw Normal View History

2022-08-07 00:22:00 +00:00
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(TARGET_PREFIX arm-linux-gnueabihf)
set(CMAKE_C_COMPILER ${TARGET_PREFIX}-gcc)
set(CMAKE_CXX_COMPILER ${TARGET_PREFIX}-g++)
set(PKG_CONFIG_EXECUTABLE ${TARGET_PREFIX}-pkg-config)
2022-08-07 03:01:14 +00:00
set(CMAKE_FIND_ROOT_PATH /usr/${TARGET_PREFIX} /usr/lib/${TARGET_PREFIX})
2022-08-07 00:22:00 +00:00
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
2022-08-07 03:05:16 +00:00
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
2022-08-07 00:53:29 +00:00
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH)