toolchain-mingw.cmake 398 B

12345678910111213
  1. # Simple toolchain file for cross-building Windows Puzzles on Linux
  2. # using MinGW (tested on Debian).
  3. set(CMAKE_SYSTEM_NAME Windows)
  4. set(CMAKE_SYSTEM_PROCESSOR x86_64)
  5. set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
  6. set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
  7. set(CMAKE_AR x86_64-w64-mingw32-ar)
  8. set(CMAKE_RANLIB x86_64-w64-mingw32-ranlib)
  9. add_compile_definitions(MINGW32_FIX)