mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-27 14:26:04 +03:00
* chore(build): add vendored SDL 3.0.0 library * chore(build): add vendored glew-cmake-2.2.0 library * feat(console): in the presence of -opengl launch flag, change GxApi to OpenGl * feat(gx): add uncompleted CGxDeviceGLSDL targeting Windows and Linux * chore(build): change SDL3 linkage from shared (bad) to to static (good)
14 lines
375 B
CMake
14 lines
375 B
CMake
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++)
|
|
|
|
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()
|