initial checkin
[cross.git] / arm-linux-gnueabihf-4.9 / toolset.cmake
1 # Define our host system
2 SET(CMAKE_SYSTEM_NAME Linux)
3 SET(CMAKE_SYSTEM_VERSION 1)# Define the cross compiler locations
4 SET(CMAKE_C_COMPILER   /opt/cross/arm-linux-gnueabihf-4.9/bin/arm-linux-gnueabihf-gcc)
5 SET(CMAKE_CXX_COMPILER /opt/cross/arm-linux-gnueabihf-4.9/bin/arm-linux-gnueabihf-g++)# Define the sysroot path for the RaspberryPi distribution in our tools folder 
6 SET(CMAKE_FIND_ROOT_PATH /opt/cross/arm-linux-gnueabihf-4.9/arm-linux-gnueabihf/sysroot/)# Use our definitions for compiler tools
7
8 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
9 # Search for libraries and headers in the target directories only
10 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
11 SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
12 #add_definitions(-Wall -std=c11)
13 add_definitions(-Wall)
14 add_definitions(-std=c++11)
15 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
16