2013-07-13 04:54:49 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2015-03-24 23:58:44 +00:00
|
|
|
include_directories(
|
|
|
|
concfg
|
|
|
|
consrv)
|
2013-07-13 04:54:49 +00:00
|
|
|
|
|
|
|
list(APPEND CONSRV_SOURCE
|
|
|
|
consrv/alias.c
|
|
|
|
consrv/coninput.c
|
|
|
|
consrv/conoutput.c
|
|
|
|
consrv/console.c
|
|
|
|
consrv/frontendctl.c
|
|
|
|
consrv/handle.c
|
2014-08-29 19:45:45 +00:00
|
|
|
consrv/history.c
|
2013-07-13 04:54:49 +00:00
|
|
|
consrv/init.c
|
|
|
|
consrv/lineinput.c
|
2014-08-30 16:20:32 +00:00
|
|
|
consrv/popup.c
|
2013-07-13 04:54:49 +00:00
|
|
|
consrv/settings.c
|
2014-11-23 15:50:49 +00:00
|
|
|
consrv/shutdown.c
|
2013-08-30 17:53:45 +00:00
|
|
|
consrv/subsysreg.c
|
2013-07-13 04:54:49 +00:00
|
|
|
consrv/condrv/coninput.c
|
|
|
|
consrv/condrv/conoutput.c
|
|
|
|
consrv/condrv/console.c
|
2014-05-02 18:44:26 +00:00
|
|
|
consrv/condrv/dummyterm.c
|
2013-07-13 04:54:49 +00:00
|
|
|
consrv/condrv/graphics.c
|
|
|
|
consrv/condrv/text.c
|
|
|
|
consrv/frontends/input.c
|
2014-05-02 18:44:26 +00:00
|
|
|
consrv/frontends/terminal.c
|
2014-04-13 15:13:55 +00:00
|
|
|
consrv/frontends/gui/conwnd.c
|
2013-10-13 14:15:36 +00:00
|
|
|
consrv/frontends/gui/fullscreen.c
|
2013-07-13 04:54:49 +00:00
|
|
|
consrv/frontends/gui/guiterm.c
|
|
|
|
consrv/frontends/gui/guisettings.c
|
|
|
|
consrv/frontends/gui/graphics.c
|
|
|
|
consrv/frontends/gui/text.c
|
|
|
|
consrv/frontends/tui/tuiterm.c
|
|
|
|
# consrv/consrv.rc
|
2014-10-17 23:28:29 +00:00
|
|
|
consrv/consrv.h)
|
2013-07-13 04:54:49 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Explicitely enable MS extensions to be able to use unnamed (anonymous) nested structs.
|
|
|
|
#
|
|
|
|
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
|
|
|
if(MSVC)
|
|
|
|
## NOTE: No need to specify it as we use MSVC :)
|
|
|
|
##add_target_compile_flags(consrv "/Ze")
|
|
|
|
#set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "/Ze")
|
|
|
|
else()
|
|
|
|
#add_target_compile_flags(consrv "-fms-extensions")
|
|
|
|
set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "-fms-extensions")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(consrv ${CONSRV_SOURCE})
|
2014-09-29 11:28:17 +00:00
|
|
|
add_dependencies(consrv psdk)
|
2014-02-09 22:52:01 +00:00
|
|
|
add_pch(consrv consrv/consrv.h CONSRV_SOURCE)
|
2013-07-13 04:54:49 +00:00
|
|
|
#add_object_library(consrv ${CONSRV_SOURCE})
|
2013-07-14 11:33:26 +00:00
|
|
|
list(APPEND CONSRV_IMPORT_LIBS psapi)
|
2018-07-18 20:02:49 +00:00
|
|
|
list(APPEND CONSRV_DELAY_IMPORT_LIBS shell32 ole32)
|
2015-03-24 23:58:44 +00:00
|
|
|
list(APPEND CONSRV_TARGET_LINK_LIBS concfg uuid)
|
2013-07-13 04:54:49 +00:00
|
|
|
set_module_type(consrv module UNICODE)
|