- add set_unicode macro to msvc toolchain
  - fix win32cui module type for msvc

svn path=/branches/cmake-bringup/; revision=48897
This commit is contained in:
Jérôme Gardou 2010-09-25 23:01:09 +00:00
parent 9ea8827010
commit 796d321ba6

View file

@ -47,11 +47,16 @@ macro(set_module_type MODULE TYPE)
set_subsystem(${MODULE} windows)
endif ()
if (${TYPE} MATCHES win32cui)
set_subsystem(${MODULE} windows)
set_entrypoint(${MODULE} mainCRTStartup)
set_subsystem(${MODULE} console)
endif ()
endmacro()
macro(set_unicode MODULE STATE)
if(${STATE} MATCHES yes)
add_definitions(-DUNICODE -D_UNICODE)
endif()
endmacro()
endif()
set(CMAKE_C_FLAGS_DEBUG_INIT "/D_DEBUG /MDd /Zi /Ob0 /Od")