Create a branch for console restructuration work.
[reactos.git] / 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 set_module_type(winsrv win32dll UNICODE ENTRYPOINT DllMain 12)
19 #############################################
20 ## HACK FOR MSVC COMPILATION WITH win32dll ##
21 set_subsystem(winsrv console)
22 ################# END HACK #################
23
24 # Add the components
25 target_link_libraries(winsrv consrv usersrv)
26 # Add win32ksys because of NtUser...()
27 target_link_libraries(winsrv win32ksys libcntpr ${PSEH_LIB} ${CONSRV_TARGET_LINK_LIBS})
28
29 add_delay_importlibs(winsrv advapi32 ${CONSRV_DELAY_IMPORT_LIBS})
30 add_importlibs(winsrv csrsrv gdi32 user32 kernel32 ntdll ${CONSRV_IMPORT_LIBS})
31
32 add_dependencies(winsrv bugcodes)
33 add_cd_file(TARGET winsrv DESTINATION reactos/system32 FOR all)