3 ${REACTOS_SOURCE_DIR}/include/reactos/subsys
4 ${REACTOS_SOURCE_DIR}/win32ss/include)
6 spec2def(winsrv.dll winsrv.spec)
10 include(usersrv.cmake)
15 ${CMAKE_CURRENT_BINARY_DIR}/winsrv.def)
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 #################
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})
29 add_delay_importlibs(winsrv advapi32 ${CONSRV_DELAY_IMPORT_LIBS})
30 add_importlibs(winsrv csrsrv gdi32 user32 kernel32 ntdll ${CONSRV_IMPORT_LIBS})
32 add_dependencies(winsrv bugcodes)
33 add_cd_file(TARGET winsrv DESTINATION reactos/system32 FOR all)