Blame view

toolchains/Toolchain-Windows-i386.cmake 1.04 KB
Michał Lenart authored
1
Michał Lenart authored
2
3
4
5
6
set (CMAKE_SYSTEM_NAME Windows)
set (CMAKE_SYSTEM_VERSION 1)
set (CMAKE_C_COMPILER   i686-w64-mingw32-gcc)
set (CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
set (CMAKE_RC_COMPILER i686-w64-mingw32-windres)
Michał Lenart authored
7
Michał Lenart authored
8
9
set (CMAKE_SYSTEM_PROCESSOR "x86")
Michał Lenart authored
10
# here is the target environment located
Michał Lenart authored
11
set (WIN32_ROOT ${CROSSMORFEUSZ_ROOT}/windows32)
Michał Lenart authored
12
set (PYTHON_ROOT ${WIN32_ROOT}/Python27)
Zbigniew Gawłowicz authored
13
if(${PY})
Zbigniew Gawłowicz authored
14
	if("${PY}" MATCHES "3.*")
Zbigniew Gawłowicz authored
15
16
17
		set (PYTHON_ROOT ${WIN32_ROOT}/Python36-32)
	endif()
endif()
Michał Lenart authored
18
19
20
set (JAVA_ROOT ${WIN32_ROOT}/Java/jdk1.7.0_45)
set (CMAKE_FIND_ROOT_PATH  /usr/x86_64-w64-mingw32 ${JAVA_ROOT} ${PYTHON_ROOT})
set (CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${PYTHON_ROOT}/libs)
Michał Lenart authored
21
Michał Lenart authored
22
23
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -pedantic -I${JAVA_ROOT}/include/win32")
Michał Lenart authored
24
25
26
# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search 
# programs in the host environment
Michał Lenart authored
27
28
29
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)