6 # Default to Debug for the build type
7 if(NOT DEFINED CMAKE_BUILD_TYPE)
8 set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
9 "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
12 # the name of the target operating system
13 set(CMAKE_SYSTEM_NAME Windows)
14 set(CMAKE_SYSTEM_PROCESSOR i686)
16 # which compilers to use for C and C++
17 set(CMAKE_C_COMPILER cl)
19 if(ARCH STREQUAL "arm")
20 include(CMakeForceCompiler)
21 CMAKE_FORCE_CXX_COMPILER(cl MSVC)
23 set(CMAKE_CXX_COMPILER cl)
26 set(CMAKE_MC_COMPILER mc)
27 set(CMAKE_RC_COMPILER rc)
28 if(ARCH STREQUAL "amd64")
29 set(CMAKE_ASM_COMPILER ml64)
30 elseif(ARCH STREQUAL "arm")
31 set(CMAKE_ASM_COMPILER armasm)
33 set(CMAKE_ASM_COMPILER ml)
35 set(CMAKE_ASM_COMPILER_ID "VISUAL")
37 set(CMAKE_C_STANDARD_LIBRARIES "" CACHE INTERNAL "")
39 if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
40 add_definitions(-D__i386__)