1# Platform defines. 2set(CMAKE_SYSTEM_NAME Windows) 3set(DE_CPU "DE_CPU_X86") 4set(DE_OS "DE_OS_WIN32") 5set(DE_COMPILER "DE_COMPILER_CLANG") 6 7# Base directories. 8set(MINGW_BASE "C:/mingw" CACHE STRING "MinGW base directory") 9 10set(CMAKE_C_COMPILER "${MINGW_BASE}/bin/clang.exe") 11set(CMAKE_CXX_COMPILER "${MINGW_BASE}/bin/clang++.exe") 12 13# Search and include files (but not programs or libs) from toolchain dir. 14set(CMAKE_FIND_ROOT_PATH "${MINGW_BASE}") 15set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 16set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY FIRST) 17set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE FIRST) 18 19