toolchain-mingw.cmake 407 B

12345678910111213
  1. # Simple toolchain file for cross-building Windows PuTTY on Linux
  2. # using MinGW (tested on Ubuntu).
  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(__USE_MINGW_ANSI_STDIO)