2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
5 include_directories(consrv)
7 list(APPEND CONSRV_SOURCE
18 consrv/condrv/coninput.c
19 consrv/condrv/conoutput.c
20 consrv/condrv/console.c
21 consrv/condrv/dummyfrontend.c
22 consrv/condrv/graphics.c
24 consrv/frontends/input.c
25 consrv/frontends/gui/fullscreen.c
26 consrv/frontends/gui/guiterm.c
27 consrv/frontends/gui/guisettings.c
28 consrv/frontends/gui/graphics.c
29 consrv/frontends/gui/text.c
30 consrv/frontends/tui/tuiterm.c
35 # Explicitely enable MS extensions to be able to use unnamed (anonymous) nested structs.
37 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
39 ## NOTE: No need to specify it as we use MSVC :)
40 ##add_target_compile_flags(consrv "/Ze")
41 #set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "/Ze")
43 #add_target_compile_flags(consrv "-fms-extensions")
44 set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "-fms-extensions")
47 add_library(consrv ${CONSRV_SOURCE})
48 #add_object_library(consrv ${CONSRV_SOURCE})
50 list(APPEND CONSRV_IMPORT_LIBS psapi)
51 list(APPEND CONSRV_DELAY_IMPORT_LIBS ole32)
52 list(APPEND CONSRV_TARGET_LINK_LIBS uuid)
54 set_module_type(consrv module UNICODE)