1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys) 3 4spec2def(basesrv.dll basesrv.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 appcompat.c 8 dosdev.c 9 init.c 10 proc.c 11 sndsntry.c 12 vdm.c 13 nls.c 14 basesrv.h) 15 16add_library(basesrv MODULE 17 ${SOURCE} 18 basesrv.rc 19 ${CMAKE_CURRENT_BINARY_DIR}/basesrv.def) 20 21set_module_type(basesrv win32dll UNICODE ENTRYPOINT DllMain 12) 22############################################# 23## HACK FOR MSVC COMPILATION WITH win32dll ## 24set_subsystem(basesrv console) 25################# END HACK ################# 26 27target_link_libraries(basesrv ${PSEH_LIB}) 28add_importlibs(basesrv csrsrv ntdll) 29add_pch(basesrv basesrv.h SOURCE) 30add_dependencies(basesrv bugcodes xdk) 31add_cd_file(TARGET basesrv DESTINATION reactos/system32 FOR all) 32