1 # Target operating system and architecture
2 set(CMAKE_SYSTEM_NAME Windows)
3 set(CMAKE_SYSTEM_PROCESSOR x86_64)
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)
11 set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
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)