2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
5 include_directories(consrv_new)
7 list(APPEND CONSRV_SOURCE
10 consrv_new/conoutput.c
12 consrv_new/frontendctl.c
15 consrv_new/lineinput.c
17 consrv_new/condrv/coninput.c
18 consrv_new/condrv/conoutput.c
19 consrv_new/condrv/console.c
20 consrv_new/condrv/dummyfrontend.c
21 consrv_new/condrv/graphics.c
22 consrv_new/condrv/text.c
23 consrv_new/frontends/input.c
24 consrv_new/frontends/gui/guiterm.c
25 consrv_new/frontends/gui/guisettings.c
26 consrv_new/frontends/gui/graphics.c
27 consrv_new/frontends/gui/text.c
28 consrv_new/frontends/tui/tuiterm.c
29 # consrv_new/consrv.rc
33 # Explicitely enable MS extensions to be able to use unnamed (anonymous) nested structs.
35 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
37 ## NOTE: No need to specify it as we use MSVC :)
38 ##add_target_compile_flags(consrv_new "/Ze")
39 #set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "/Ze")
41 #add_target_compile_flags(consrv_new "-fms-extensions")
42 set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "-fms-extensions")
45 add_library(consrv_new ${CONSRV_SOURCE})
46 #add_object_library(consrv_new ${CONSRV_SOURCE})
48 add_importlibs(consrv_new psapi) # And the default ones from winsrv
49 add_delay_importlibs(consrv_new ole32) # And the default ones from winsrv
50 target_link_libraries(consrv_new uuid) # And the default ones from winsrv
52 set_module_type(consrv_new module UNICODE)