# # Target operating system name. set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR armv7l) set(CMAKE_CROSSCOMPILING TRUE) # Name of C compiler. set(CMAKE_C_COMPILER "/usr/bin//usr/bin/arm-linux-gnueabihf-gcc") set(CMAKE_CXX_COMPILER "/usr/bin/arm-linux-gnueabihf-g++") # Where to look for the target environment. (More paths can be added here) set(CMAKE_FIND_ROOT_PATH /usr/arm-linux-gnueabihf) set(CMAKE_INCLUDE_PATH /usr/include/arm-linux-gnueabihf) set(CMAKE_LIBRARY_PATH /usr/lib/arm-linux-gnueabihf) set(CMAKE_PROGRAM_PATH /usr/bin/arm-linux-gnueabihf) # Adjust the default behavior of the FIND_XXX() commands: # search programs in the host environment only. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # Search headers and libraries in the target environment only. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)