1 SET(CMAKE_SYSTEM_NAME Windows)
2 include(CMakeForceCompiler)
3 IF("${GNU_HOST}" STREQUAL "")
4 SET(GNU_HOST i586-mingw32msvc)
7 SET(CMAKE_C_COMPILER ${GNU_HOST}-gcc)
9 # CMake doesn't automatically look for prefixed 'windres', do it manually:
10 SET(CMAKE_RC_COMPILER ${GNU_HOST}-windres)
12 # The following is important to let cmake set some variables such as
13 # CMAKE_FIND_LIBRARY_PREFIXES and CMAKE_FIND_LIBRARY_SUFFIXES from
14 # Platform/Windows-GNU.cmake