0
|
1 # http://www.vtk.org/Wiki/CmakeMingw
|
|
2
|
|
3 # the name of the target operating system
|
571
|
4 set(CMAKE_SYSTEM_NAME Windows)
|
0
|
5
|
|
6 # which compilers to use for C and C++
|
571
|
7 set(CMAKE_C_COMPILER i586-mingw32msvc-gcc)
|
|
8 set(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
|
|
9 set(CMAKE_RC_COMPILER i586-mingw32msvc-windres)
|
0
|
10
|
|
11 # here is the target environment located
|
571
|
12 set(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc)
|
0
|
13
|
|
14 # adjust the default behaviour of the FIND_XXX() commands:
|
|
15 # search headers and libraries in the target environment, search
|
|
16 # programs in the host environment
|
|
17 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
18 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
19 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|