mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
requires clang/lld or mingw, obviously just make sure the MSVC_DIRECTORY env variable points to valid Visual Studio Build Tools directory and do: `cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=clang_or_mingw_toolchain_file`
12 lines
312 B
CMake
12 lines
312 B
CMake
set(CMAKE_SYSTEM_NAME Windows)
|
|
set(CMAKE_SYSTEM_PROCESSOR i686)
|
|
|
|
set(triple ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32)
|
|
|
|
set(CMAKE_C_COMPILER ${triple}-gcc)
|
|
set(CMAKE_CXX_COMPILER ${triple}-g++)
|
|
set(CMAKE_RC_COMPILER ${triple}-windres)
|
|
|
|
set(CMAKE_C_COMPILER_TARGET ${triple})
|
|
set(CMAKE_CXX_COMPILER_TARGET ${triple})
|