2022-11-24 10:38:18 -08:00
|
|
|
set(CMAKE_SYSTEM_NAME Windows)
|
|
|
|
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
|
|
|
|
|
|
|
find_program(CMAKE_C_COMPILER NAMES x86_64-w64-mingw32-gcc)
|
|
|
|
find_program(CMAKE_CXX_COMPILER NAMES x86_64-w64-mingw32-g++)
|
2024-03-05 20:38:00 +01:00
|
|
|
find_program(CMAKE_RC_COMPILER NAMES x86_64-w64-mingw32-windres windres)
|
2022-11-24 10:38:18 -08:00
|
|
|
|
|
|
|
if(NOT CMAKE_C_COMPILER)
|
|
|
|
message(FATAL_ERROR "Failed to find CMAKE_C_COMPILER.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT CMAKE_CXX_COMPILER)
|
|
|
|
message(FATAL_ERROR "Failed to find CMAKE_CXX_COMPILER.")
|
|
|
|
endif()
|
2024-01-28 21:43:08 +00:00
|
|
|
|
|
|
|
if(NOT CMAKE_RC_COMPILER)
|
|
|
|
message(FATAL_ERROR "Failed to find CMAKE_RC_COMPILER.")
|
|
|
|
endif()
|