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