|
1
|
|
|
2
|
set (DARWIN64_ROOT ${CROSSMORFEUSZ_ROOT}/darwin64)
|
|
3
4
|
set (CMAKE_SYSTEM_NAME Darwin)
|
|
5
|
set (CMAKE_SYSTEM_VERSION 1)
|
|
6
|
set (CMAKE_C_COMPILER ${DARWIN64_ROOT}/x86_64-apple-darwin9/bin/x86_64-apple-darwin9-gcc)
|
|
7
|
set (CMAKE_CXX_COMPILER /usr/x86_64-apple-darwin9/bin/x86_64-apple-darwin9-g++)
|
|
8
|
|
|
9
10
|
set (CMAKE_SYSTEM_PROCESSOR "x86_64")
|
|
11
12
|
set (JAVA_ROOT ${DARWIN64_ROOT}/JavaVM.framework)
set (PYTHON_ROOT ${DARWIN64_ROOT}/Python.framework/Versions/2.7)
|
|
13
|
|
|
14
|
set (INSTALL_NAME_TOOL /usr/x86_64-apple-darwin9/bin/x86_64-apple-darwin9-install_name_tool)
|
|
15
|
|
|
16
|
# here is the target environment located
|
|
17
|
set (CMAKE_FIND_ROOT_PATH ${DARWIN64_ROOT}/x86_64-apple-darwin9 ${JAVA_ROOT} ${PYTHON_ROOT})
|
|
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)
|
|
26
27
28
|
set (JAVA_JVM_LIBRARY ${JAVA_ROOT})
set (JAVA_AWT_LIBRARY ${JAVA_ROOT})
set (JAVA_INCLUDE_PATH ${JAVA_ROOT}/Headers)
|