MinGW_x86_64.cmake 649 B

12345678910111213141516
  1. # this one sets internal to crosscompile (in theory)
  2. SET(CMAKE_SYSTEM_NAME Windows)
  3. # the minimalistic settings
  4. SET(CMAKE_C_COMPILER "/usr/bin/x86_64-w64-mingw32-gcc")
  5. SET(CMAKE_CXX_COMPILER "/usr/bin/x86_64-w64-mingw32-g++")
  6. SET(CMAKE_RC_COMPILER "/usr/bin/x86_64-w64-mingw32-windres")
  7. # where is the target (so called staging) environment
  8. SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
  9. # search for programs in the build host directories (default BOTH)
  10. #SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  11. # for libraries and headers in the target directories
  12. SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  13. SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)