1set(MINGW_PREFIX "x86_64-w64-mingw32" CACHE STRING "MinGW Prefix")
2# the name of the target operating system
3set(CMAKE_SYSTEM_NAME Windows)
4
5# which compilers to use for C and C++
6set(CMAKE_C_COMPILER "${MINGW_PREFIX}-gcc")
7set(CMAKE_CXX_COMPILER "${MINGW_PREFIX}-g++")
8set(CMAKE_RC_COMPILER "${MINGW_PREFIX}-windres")
9
10set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
11set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
12set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
13
14set(CARGO_BUILD_TARGET "x86_64-pc-windows-gnu" CACHE STRING "" FORCE)
15
16set(LOCAL_SDL_LIB "dependencies/lib-SDL2-2.0.8-mingw/x86_64-w64-mingw32" CACHE STRING "" FORCE)
17set(LOCAL_FLTK_LIB ON CACHE BOOL "" FORCE)
18set(LOCAL_GTEST_LIB ON CACHE BOOL "" FORCE)
19set(CFLAGS "${CFLAGS} -mwindows -mconsole" CACHE BOOL "" FORCE)
20set(CMAKE_CXX_FLAGS_INIT "-Wa,-mbig-obj")
21