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
|
2019-12-25 14:35:01 +00:00
|
|
|
consrv/frontends/wcwidth.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
|
|
|
|
|
|
|
#
|
2020-04-10 18:37:28 +00:00
|
|
|
# Explicitly enable MS extensions to be able to use unnamed (anonymous) nested structs.
|
2013-07-13 04:54:49 +00:00
|
|
|
#
|
|
|
|
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
|
|
|
if(MSVC)
|
|
|
|
## NOTE: No need to specify it as we use MSVC :)
|
2020-04-16 12:59:38 +00:00
|
|
|
##target_compile_options(consrv PRIVATE "/Ze")
|
2024-06-03 15:52:29 +00:00
|
|
|
#set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_OPTIONS "/Ze")
|
2013-07-13 04:54:49 +00:00
|
|
|
else()
|
2020-04-16 12:59:38 +00:00
|
|
|
#target_compile_options(consrv PRIVATE "-fms-extensions")
|
2024-06-03 15:52:29 +00:00
|
|
|
set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_OPTIONS "-fms-extensions")
|
2013-07-13 04:54:49 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(consrv ${CONSRV_SOURCE})
|
2021-04-22 15:28:52 +00:00
|
|
|
target_link_libraries(consrv pseh)
|
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})
|
2024-02-22 13:05:04 +00:00
|
|
|
#list(APPEND CONSRV_IMPORT_LIBS)
|
|
|
|
list(APPEND CONSRV_DELAY_IMPORT_LIBS shell32 ole32 psapi)
|
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)
|