blob: 3dfb1a51b730d67eff863e33d33b5ce775f10882 [file] [log] [blame]
Pascal Bach569863a2014-06-10 13:15:40 +02001# CMake mingw32 cross compile toolchain file
2
3# the name of the target operating system
4SET(CMAKE_SYSTEM_NAME Windows)
5
6# which compilers to use for C and C++
7SET(CMAKE_C_COMPILER i586-mingw32msvc-gcc)
8SET(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
9SET(CMAKE_RC_COMPILER i586-mingw32msvc-windres)
10
11# here is the target environment located
12SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc)
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
17set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
18set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
19set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)