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