Fixed cross compiling for win32 (mingw).
[ne.git] / win32 / CMakeMingw.txt
blob2297f3fcf4f9627364350f2adc4b629b5529663f
1 # the name of the target operating system
2 SET(CMAKE_SYSTEM_NAME Windows)
4 # which compilers to use for C and C++
5 SET(CMAKE_C_COMPILER i586-mingw32msvc-gcc)
6 SET(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
8 SET(WINDRES i586-mingw32msvc-windres)
10 # here is the target environment located
11 SET(CMAKE_FIND_ROOT_PATH  $ENV{HOME}/Builds/mingw /usr/i586-mingw32msvc )
13 # adjust the default behaviour of the FIND_XXX() commands:
14 # search headers and libraries in the target environment, search 
15 # programs in the host environment
16 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
17 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
18 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
20 # needed for mingw
21 set(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH}/lib )
22 set(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SYSTEM_INCLUDE_PATH}/include )