1 # Toolchain for mingw-w64 32-bit compilers, as shipped in Debian/Ubuntu.
3 set(GNU_HOST i686-w64-mingw32)
4 set(CMAKE_SYSTEM_PROCESSOR "i686")
6 set(COMPILER_PREFIX "${GNU_HOST}-")
8 set(CMAKE_SYSTEM_NAME "Windows")
9 set(CMAKE_CROSSCOMPILING TRUE)
13 include(CMakeForceCompiler)
14 cmake_force_c_compiler(${COMPILER_PREFIX}gcc GNU)
15 cmake_force_cxx_compiler(${COMPILER_PREFIX}g++ GNU)
16 set(CMAKE_RC_COMPILER ${COMPILER_PREFIX}windres)
18 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
19 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
20 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)