diff --git a/msc.cmake b/msc.cmake index deb1622d391..cc7565cbf7f 100644 --- a/msc.cmake +++ b/msc.cmake @@ -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")