Blame view

toolchains/Toolchain-Darwin-amd64.cmake 1.06 KB
Michał Lenart authored
1
Michał Lenart authored
2
set (DARWIN64_ROOT ${CROSSMORFEUSZ_ROOT}/darwin64)
Michał Lenart authored
3
4

set (CMAKE_SYSTEM_NAME Darwin)
Michał Lenart authored
5
set (CMAKE_SYSTEM_VERSION 1)
Michał Lenart authored
6
set (CMAKE_C_COMPILER   ${DARWIN64_ROOT}/x86_64-apple-darwin9/bin/x86_64-apple-darwin9-gcc)
Michał Lenart authored
7
set (CMAKE_CXX_COMPILER   /usr/x86_64-apple-darwin9/bin/x86_64-apple-darwin9-g++)
Michał Lenart authored
8
Michał Lenart authored
9
10
set (CMAKE_SYSTEM_PROCESSOR "x86_64")
Michał Lenart authored
11
12
set (JAVA_ROOT ${DARWIN64_ROOT}/JavaVM.framework)
set (PYTHON_ROOT ${DARWIN64_ROOT}/Python.framework/Versions/2.7)
Michał Lenart authored
13
Michał Lenart authored
14
set (INSTALL_NAME_TOOL /usr/x86_64-apple-darwin9/bin/x86_64-apple-darwin9-install_name_tool)
Michał Lenart authored
15
Michał Lenart authored
16
# here is the target environment located
Michał Lenart authored
17
set (CMAKE_FIND_ROOT_PATH ${DARWIN64_ROOT}/x86_64-apple-darwin9 ${JAVA_ROOT} ${PYTHON_ROOT})
Michał Lenart authored
18
19
20
21
22
23
24
25

# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search 
# programs in the host environment
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Michał Lenart authored
26
27
28
set (JAVA_JVM_LIBRARY ${JAVA_ROOT})
set (JAVA_AWT_LIBRARY ${JAVA_ROOT})
set (JAVA_INCLUDE_PATH ${JAVA_ROOT}/Headers)