- SET(CMAKE_SYSTEM_NAME Linux)
- # specify the cross compiler
- SET(CMAKE_C_COMPILER /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc)
- SET(CMAKE_CXX_COMPILER /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-g++)
- SET(CMAKE_ASM_COMPILER /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-as)
- # search for programs in the build host directories
- SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
- # for libraries and headers in the target directories
- SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
- SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|