SET(CMAKE_SYSTEM_NAME Linux) # specify the cross compiler SET(CMAKE_C_COMPILER /root/at91/arm-2010q1/bin/arm-none-linux-gnueabi-gcc) SET(CMAKE_CXX_COMPILER /root/at91/arm-2010q1/bin/arm-none-linux-gnueabi-g++) SET(CMAKE_ASM_COMPILER /root/at91/arm-2010q1/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)