1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl) 3add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winspool.idl) 4spec2def(winspool.drv winspool.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 ../marshalling.c 8 devmode.c 9 forms.c 10 jobs.c 11 main.c 12 monitors.c 13 ports.c 14 precomp.h 15 printerdata.c 16 printerdrivers.c 17 printers.c 18 printprocessors.c 19 printproviders.c 20 utils.c 21 ${CMAKE_CURRENT_BINARY_DIR}/winspool_c.c) 22 23add_library(winspool MODULE 24 ${SOURCE} 25 winspool.rc 26 ${CMAKE_CURRENT_BINARY_DIR}/winspool_stubs.c 27 ${CMAKE_CURRENT_BINARY_DIR}/winspool.def) 28 29set_target_properties(winspool PROPERTIES SUFFIX ".drv") 30set_module_type(winspool win32dll UNICODE) 31target_link_libraries(winspool wine ${PSEH_LIB}) 32add_importlibs(winspool advapi32 gdi32 rpcrt4 msvcrt kernel32 ntdll) 33add_pch(winspool precomp.h SOURCE) 34add_cd_file(TARGET winspool DESTINATION reactos/system32 FOR all) 35