2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
9 list(APPEND CONSRV_SOURCE
23 consrv/condrv/coninput.c
24 consrv/condrv/conoutput.c
25 consrv/condrv/console.c
26 consrv/condrv/dummyterm.c
27 consrv/condrv/graphics.c
29 consrv/frontends/input.c
30 consrv/frontends/terminal.c
31 consrv/frontends/wcwidth.c
32 consrv/frontends/gui/conwnd.c
33 consrv/frontends/gui/fullscreen.c
34 consrv/frontends/gui/guiterm.c
35 consrv/frontends/gui/guisettings.c
36 consrv/frontends/gui/graphics.c
37 consrv/frontends/gui/text.c
38 consrv/frontends/tui/tuiterm.c
43 # Explicitly enable MS extensions to be able to use unnamed (anonymous) nested structs.
45 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
47 ## NOTE: No need to specify it as we use MSVC :)
48 ##target_compile_options(consrv PRIVATE "/Ze")
49 #set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "/Ze")
51 #target_compile_options(consrv PRIVATE "-fms-extensions")
52 set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "-fms-extensions")
55 add_library(consrv ${CONSRV_SOURCE})
56 target_link_libraries(consrv pseh)
57 add_dependencies(consrv psdk)
58 add_pch(consrv consrv/consrv.h CONSRV_SOURCE)
59 #add_object_library(consrv ${CONSRV_SOURCE})
60 list(APPEND CONSRV_IMPORT_LIBS psapi)
61 list(APPEND CONSRV_DELAY_IMPORT_LIBS shell32 ole32)
62 list(APPEND CONSRV_TARGET_LINK_LIBS concfg uuid)
63 set_module_type(consrv module UNICODE)