cross_arm.cmake-2009 553 B

123456789101112
  1. SET(CMAKE_SYSTEM_NAME Linux)
  2. # specify the cross compiler
  3. SET(CMAKE_C_COMPILER /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc)
  4. SET(CMAKE_CXX_COMPILER /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-g++)
  5. SET(CMAKE_ASM_COMPILER /usr/local/arm/arm-2009q3/bin/arm-none-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)