cross_arm.cmake-ls 703 B

123456789101112
  1. SET(CMAKE_SYSTEM_NAME Linux)
  2. # specify the cross compiler
  3. 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)
  4. 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++)
  5. 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)
  6. # search for programs in the build host directories
  7. SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  8. # for libraries and headers in the target directories
  9. SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  10. SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)