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