Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
[reactos.git] / win32ss / user / winsrv / consrv.cmake
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 include_directories(consrv)
6
7 list(APPEND CONSRV_SOURCE
8 consrv/alias.c
9 consrv/coninput.c
10 consrv/conoutput.c
11 consrv/console.c
12 consrv/frontendctl.c
13 consrv/handle.c
14 consrv/init.c
15 consrv/lineinput.c
16 consrv/settings.c
17 consrv/condrv/coninput.c
18 consrv/condrv/conoutput.c
19 consrv/condrv/console.c
20 consrv/condrv/dummyfrontend.c
21 consrv/condrv/graphics.c
22 consrv/condrv/text.c
23 consrv/frontends/input.c
24 consrv/frontends/gui/guiterm.c
25 consrv/frontends/gui/guisettings.c
26 consrv/frontends/gui/graphics.c
27 consrv/frontends/gui/text.c
28 consrv/frontends/tui/tuiterm.c
29 # consrv/consrv.rc
30 )
31
32 #
33 # Explicitely enable MS extensions to be able to use unnamed (anonymous) nested structs.
34 #
35 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
36 if(MSVC)
37 ## NOTE: No need to specify it as we use MSVC :)
38 ##add_target_compile_flags(consrv "/Ze")
39 #set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "/Ze")
40 else()
41 #add_target_compile_flags(consrv "-fms-extensions")
42 set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "-fms-extensions")
43 endif()
44
45 add_library(consrv ${CONSRV_SOURCE})
46 #add_object_library(consrv ${CONSRV_SOURCE})
47
48 list(APPEND CONSRV_IMPORT_LIBS psapi)
49 list(APPEND CONSRV_DELAY_IMPORT_LIBS ole32)
50 list(APPEND CONSRV_TARGET_LINK_LIBS uuid)
51
52 set_module_type(consrv module UNICODE)