summaryrefslogtreecommitdiffstats
path: root/config/cmake/toolchain-target.cmake.in
blob: eeb2e390e43fbc6f4ee3dc0e50dde80039a541ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# http://www.cmake.org/Wiki/CmakeEldk

# this one is important
SET(CMAKE_SYSTEM_NAME			@SYSTEM_NAME@)

# this one not so much
SET(CMAKE_SYSTEM_VERSION		@SYSTEM_VERSION@)

# specify the cross compiler
SET(CMAKE_C_COMPILER			@CC@)
SET(CMAKE_CXX_COMPILER			@CXX@)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH		@SYSROOT@)

# additional search directories
include_directories(			@INCLUDE_DIRECTORIES@)
link_directories(			@LINK_DIRECTORIES@)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM	NEVER)

# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY	ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE	ONLY)