15becacf8eb26b661d8cc60705ac8b5469bd4eb7
[reactos.git] / reactos / win32ss / user / winsrv / CMakeLists.txt
1
2 include_directories(
3 ${REACTOS_SOURCE_DIR}/include/reactos/subsys
4 ${REACTOS_SOURCE_DIR}/win32ss/include)
5
6 spec2def(winsrv.dll winsrv.spec)
7
8 # The components
9 include(consrv.cmake)
10 include(usersrv.cmake)
11
12 list(APPEND SOURCE
13 init.c
14 winsrv.rc
15 ${CMAKE_CURRENT_BINARY_DIR}/winsrv.def)
16
17 add_library(winsrv SHARED ${SOURCE})
18
19 # Add the components
20 target_link_libraries(winsrv consrv usersrv)
21 # Add win32ksys because of NtUser...()
22 target_link_libraries(winsrv win32ksys ${PSEH_LIB} ${CONSRV_TARGET_LINK_LIBS})
23
24 set_module_type(winsrv win32dll UNICODE)
25
26 add_importlibs(winsrv msvcrt kernel32 ntdll csrsrv ${CONSRV_IMPORT_LIBS})
27 add_delay_importlibs(winsrv user32 gdi32 advapi32 ${CONSRV_DELAY_IMPORT_LIBS})
28
29 add_dependencies(winsrv bugcodes)
30 add_cd_file(TARGET winsrv DESTINATION reactos/system32 FOR all)