shithub: puzzles

ref: 828c7da78561768a52a2c38d7c8c9bc1d14c3120
dir: /cmake/toolchain-mingw.cmake/

View raw version
# Simple toolchain file for cross-building Windows Puzzles on Linux
# using MinGW (tested on Debian).

set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR x86_64)

set(CMAKE_C_COMPILER  x86_64-w64-mingw32-gcc)
set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
set(CMAKE_AR          x86_64-w64-mingw32-ar)
set(CMAKE_RANLIB      x86_64-w64-mingw32-ranlib)

add_compile_definitions(MINGW32_FIX)