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