]> git.xonotic.org Git - xonotic/darkplaces.git/blob - buildsys/toolchain/mingw64.cmake
cmake: Initial working implementation of cmake build system
[xonotic/darkplaces.git] / buildsys / toolchain / mingw64.cmake
1 # Target operating system and architecture
2 set(CMAKE_SYSTEM_NAME Windows)
3 set(CMAKE_SYSTEM_PROCESSOR x86_64)
4
5 # C/C++ compilers
6 set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
7 set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
8 set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
9
10 # Target prefix
11 set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
12
13 # Find programs using host paths and headers/libraries using target paths
14 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
15 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
16 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)