2 # Console Configuration library
3 add_subdirectory(concfg)
6 ${REACTOS_SOURCE_DIR}/include/reactos/subsys
7 ${REACTOS_SOURCE_DIR}/win32ss/include)
9 spec2def(winsrv.dll winsrv.spec)
13 include(usersrv.cmake)
18 ${CMAKE_CURRENT_BINARY_DIR}/winsrv.def)
20 add_library(winsrv SHARED ${SOURCE})
21 set_module_type(winsrv win32dll UNICODE ENTRYPOINT DllMain 12)
22 #############################################
23 ## HACK FOR MSVC COMPILATION WITH win32dll ##
24 set_subsystem(winsrv console)
25 ################# END HACK #################
28 target_link_libraries(winsrv consrv usersrv)
29 # Add win32ksys because of NtUser...()
30 target_link_libraries(winsrv ${CONSRV_TARGET_LINK_LIBS} win32ksys libcntpr ${PSEH_LIB})
32 add_delay_importlibs(winsrv ${CONSRV_DELAY_IMPORT_LIBS} advapi32)
33 add_importlibs(winsrv ${CONSRV_IMPORT_LIBS} ${USERSRV_IMPORT_LIBS} csrsrv gdi32 user32 kernel32 ntdll)
34 add_dependencies(winsrv bugcodes)
35 add_cd_file(TARGET winsrv DESTINATION reactos/system32 FOR all)