2010-09-19 00:27:24 +00:00
|
|
|
|
|
|
|
# the name of the target operating system
|
|
|
|
set(CMAKE_SYSTEM_NAME Windows)
|
|
|
|
set(CMAKE_SYSTEM_PROCESSOR i686)
|
|
|
|
|
|
|
|
# which compilers to use for C and C++
|
|
|
|
set(CMAKE_C_COMPILER cl)
|
|
|
|
set(CMAKE_CXX_COMPILER cl)
|
2011-01-24 18:13:40 +00:00
|
|
|
set(CMAKE_RC_COMPILER rc)
|
|
|
|
if(${ARCH} MATCHES amd64)
|
2011-02-14 09:33:36 +00:00
|
|
|
set(CMAKE_ASM_COMPILER ml64)
|
2011-01-24 18:13:40 +00:00
|
|
|
else()
|
2011-02-14 09:33:36 +00:00
|
|
|
set(CMAKE_ASM_COMPILER ml)
|
2011-01-24 18:13:40 +00:00
|
|
|
endif()
|
2010-09-19 18:53:55 +00:00
|
|
|
|
2010-09-20 23:14:45 +00:00
|
|
|
set(CMAKE_C_STANDARD_LIBRARIES "" CACHE INTERNAL "")
|
2011-01-24 18:13:40 +00:00
|
|
|
|
|
|
|
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86")
|
|
|
|
add_definitions(-D__i386__)
|
|
|
|
endif()
|