1 2# Console Configuration library 3add_subdirectory(concfg) 4 5include_directories( 6 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys 7 ${REACTOS_SOURCE_DIR}/win32ss/include) 8 9spec2def(winsrv.dll winsrv.spec) 10 11# The components 12include(consrv.cmake) 13include(usersrv.cmake) 14 15list(APPEND SOURCE 16 init.c 17 winsrv.rc 18 ${CMAKE_CURRENT_BINARY_DIR}/winsrv.def) 19 20add_library(winsrv MODULE ${SOURCE}) 21set_module_type(winsrv win32dll UNICODE ENTRYPOINT DllMain 12) 22############################################# 23## HACK FOR MSVC COMPILATION WITH win32dll ## 24set_subsystem(winsrv console) 25################# END HACK ################# 26 27# Add the components 28target_link_libraries(winsrv consrv usersrv) 29# Add win32ksys because of NtUser...() 30target_link_libraries(winsrv ${CONSRV_TARGET_LINK_LIBS} win32ksys libcntpr ${PSEH_LIB}) 31 32add_delay_importlibs(winsrv ${CONSRV_DELAY_IMPORT_LIBS} advapi32) 33add_importlibs(winsrv ${CONSRV_IMPORT_LIBS} ${USERSRV_IMPORT_LIBS} csrsrv gdi32 user32 kernel32 ntdll) 34add_dependencies(winsrv bugcodes xdk) 35add_cd_file(TARGET winsrv DESTINATION reactos/system32 FOR all) 36