SET(CMAKE_SYSTEM_NAME Linux) SET(CMAKE_SYSTEM_PROCESSOR arm) SET(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc) SET(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) SET(CMAKE_FIND_ROOT_PATH ${PROJECT_SOURCE_DIR}/rootfs) SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)