cmake-toolchain-mingw64-x86_64.cmake 548 B

123456789101112131415161718
  1. set(CMAKE_SYSTEM_NAME Windows)
  2. set(CMAKE_SYSTEM_PROCESSOR x86_64)
  3. find_program(CMAKE_C_COMPILER NAMES x86_64-w64-mingw32-gcc)
  4. find_program(CMAKE_CXX_COMPILER NAMES x86_64-w64-mingw32-g++)
  5. find_program(CMAKE_RC_COMPILER NAMES x86_64-w64-mingw32-windres windres)
  6. if(NOT CMAKE_C_COMPILER)
  7. message(FATAL_ERROR "Failed to find CMAKE_C_COMPILER.")
  8. endif()
  9. if(NOT CMAKE_CXX_COMPILER)
  10. message(FATAL_ERROR "Failed to find CMAKE_CXX_COMPILER.")
  11. endif()
  12. if(NOT CMAKE_RC_COMPILER)
  13. message(FATAL_ERROR "Failed to find CMAKE_RC_COMPILER.")
  14. endif()