1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl) 3add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/wkssvc.idl) 4spec2def(wkssvc.dll wkssvc.spec ADD_IMPORTLIB) 5 6add_library(wkssvc SHARED 7 rpcserver.c 8 wkssvc.c 9 wkssvc.rc 10 ${CMAKE_CURRENT_BINARY_DIR}/wkssvc_s.c 11 ${CMAKE_CURRENT_BINARY_DIR}/wkssvc.def) 12 13set_module_type(wkssvc win32dll UNICODE) 14target_link_libraries(wkssvc wine) 15add_importlibs(wkssvc advapi32 rpcrt4 msvcrt kernel32 ntdll) 16add_cd_file(TARGET wkssvc DESTINATION reactos/system32 FOR all) 17