a60a546d356ba23f3e6a79d426c648a12f4fd41d
[reactos.git] / reactos / 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/history.c
15 consrv/init.c
16 consrv/lineinput.c
17 consrv/popup.c
18 consrv/settings.c
19 consrv/subsysreg.c
20 consrv/condrv/coninput.c
21 consrv/condrv/conoutput.c
22 consrv/condrv/console.c
23 consrv/condrv/dummyterm.c
24 consrv/condrv/graphics.c
25 consrv/condrv/text.c
26 consrv/frontends/input.c
27 consrv/frontends/terminal.c
28 consrv/frontends/gui/conwnd.c
29 consrv/frontends/gui/fullscreen.c
30 consrv/frontends/gui/guiterm.c
31 consrv/frontends/gui/guisettings.c
32 consrv/frontends/gui/graphics.c
33 consrv/frontends/gui/text.c
34 consrv/frontends/tui/tuiterm.c
35 # consrv/consrv.rc
36 consrv/consrv.h
37 )
38
39 #
40 # Explicitely enable MS extensions to be able to use unnamed (anonymous) nested structs.
41 #
42 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
43 if(MSVC)
44 ## NOTE: No need to specify it as we use MSVC :)
45 ##add_target_compile_flags(consrv "/Ze")
46 #set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "/Ze")
47 else()
48 #add_target_compile_flags(consrv "-fms-extensions")
49 set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "-fms-extensions")
50 endif()
51
52 add_library(consrv ${CONSRV_SOURCE})
53 add_pch(consrv consrv/consrv.h CONSRV_SOURCE)
54 #add_object_library(consrv ${CONSRV_SOURCE})
55
56 list(APPEND CONSRV_IMPORT_LIBS psapi)
57 list(APPEND CONSRV_DELAY_IMPORT_LIBS ole32)
58 list(APPEND CONSRV_TARGET_LINK_LIBS uuid)
59
60 set_module_type(consrv module UNICODE)