Blame view

morfeusz/Toolchain-Linux-i386.cmake 906 Bytes
Michał Lenart authored
1
Michał Lenart authored
2
3
set (CMAKE_SYSTEM_NAME Linux)
set (CMAKE_SYSTEM_VERSION 1)
Michał Lenart authored
4
5
6
7
set (CMAKE_C_COMPILER   gcc)
set (CMAKE_CXX_COMPILER g++)
set (CMAKE_C_FLAGS "-m32")
set (CMAKE_CXX_FLAGS "-m32")
Michał Lenart authored
8
Michał Lenart authored
9
10
set (CMAKE_SYSTEM_PROCESSOR "x86")
Michał Lenart authored
11
12
13
14
15
16
17
18
19
20
21
22
23
set (JAVA_ROOT /mnt/storage/crossmorfeusz/linux32/jdk1.7.0_45)
set (PYTHON_ROOT /mnt/storage/crossmorfeusz/linux32/python)

# here is the target environment located
set (CMAKE_FIND_ROOT_PATH  ${JAVA_ROOT} ${PYTHON_ROOT})

# 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 BOTH)
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
Michał Lenart authored
24
25
set (JAVA_JVM_LIBRARY ${JAVA_ROOT}/bin)
set (JAVA_AWT_LIBRARY ${JAVA_ROOT}/bin)
Michał Lenart authored
26
set (JAVA_INCLUDE_PATH ${JAVA_ROOT}/include)
Michał Lenart authored
27
set (JAVA_INCLUDE_PATH2 ${JAVA_ROOT}/include/linux)