Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove tests for deprecated dicts of scalars.
[simgrid.git] / toolchain.win32
1 # This is an experimental toolchain file for cmake, to use when you
2 # want to cross compile from linux to windows. For that, you'll need
3 # some packages like mingw32-binutils and mingw32-runtime. 
4
5 # Then, you want to use those commands to cross compile out of source:
6 # cd win32
7 # cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain.win32 -Dwith_context=windows ..
8
9 # the name of the target operating system
10 SET(CMAKE_SYSTEM_NAME Windows)
11
12 SET(WIN32 1)
13
14 # Manual setting of values that are detected when not cross-compiling
15 SET(SIZEOF_MAX 8)
16 SET(GRAS_THISARCH 3) # FIXME: that's windows 32 bits, 64bits must be detected
17
18 # which compilers to use for C and C++
19 SET(CMAKE_C_COMPILER i586-mingw32msvc-gcc)
20 SET(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
21
22 # here is the target environment located
23 SET(CMAKE_FIND_ROOT_PATH  /usr/i586-mingw32msvc)
24
25 # adjust the default behaviour of the FIND_XXX() commands:
26 # search headers and libraries in the target environment, search 
27 # programs in the host environment
28 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
29 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
30 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)