[REACTOS]
[reactos.git] / reactos / win32ss / user / consrv / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 include_directories(
6 ${REACTOS_SOURCE_DIR}/include/reactos/subsys
7 ${REACTOS_SOURCE_DIR}/win32ss/include)
8
9 spec2def(consrv.dll consrv.spec)
10
11 list(APPEND SOURCE
12 alias.c
13 coninput.c
14 conoutput.c
15 console.c
16 handle.c
17 init.c
18 lineinput.c
19 settings.c
20 consrv.rc
21 frontends/gui/guiterm.c
22 frontends/gui/guisettings.c
23 frontends/tui/tuiterm.c
24 ${CMAKE_CURRENT_BINARY_DIR}/consrv.def)
25
26 add_library(consrv SHARED ${SOURCE})
27
28 target_link_libraries(consrv win32ksys ${PSEH_LIB} uuid) # win32ksys because of NtUser...()
29
30 set_module_type(consrv win32dll UNICODE)
31
32 add_importlibs(consrv psapi msvcrt kernel32 ntdll csrsrv)
33 add_delay_importlibs(consrv user32 gdi32 advapi32 ole32)
34
35 add_dependencies(consrv bugcodes)
36 add_cd_file(TARGET consrv DESTINATION reactos/system32 FOR all)