1SET(TOOLCHAIN_HOME "/home1/yqw/linux/1106_ipc/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf") 2 3# this is required 4#SET(CMAKE_SYSTEM_NAME Linux) 5 6# specify the cross compiler 7SET(CMAKE_C_COMPILER ${TOOLCHAIN_HOME}/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc) 8SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_HOME}/bin/arm-rockchip830-linux-uclibcgnueabihf-g++) 9 10# where is the target environment 11SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_HOME}) 12 13# search for programs in the build host directories (not necessary) 14SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 15# for libraries and headers in the target directories 16SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 17SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 18