set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR arm) set(CMAKE_C_COMPILER arm-none-linux-gnueabihf-gcc) set(CMAKE_CXX_COMPILER arm-none-linux-gnueabihf-g++)