1set(CMAKE_SYSTEM_NAME Windows)
2set(CMAKE_SYSTEM_VERSION 1)
3set(CMAKE_SYSTEM_PROCESSOR i686)
4# This is a fix, because otherwise the EXEC_SUFFIX is not set to '.exe'
5# This fix is not needed with the w64 toolchain. Don't know why...
8set(CMAKE_C_COMPILER /usr/bin/i686-w64-mingw32-gcc)
9set(CMAKE_CXX_COMPILER /usr/bin/i686-w64-mingw32-g++)
10set(CMAKE_RC_COMPILER /usr/bin/i686-w64-mingw32-windres)
12set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
14set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
15set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
16set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
17set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)