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