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 ${CMAKE_CURRENT_BINARY_DIR}/winspool_c.c) 21 22add_library(winspool MODULE 23 ${SOURCE} 24 winspool.rc 25 ${CMAKE_CURRENT_BINARY_DIR}/winspool_stubs.c 26 ${CMAKE_CURRENT_BINARY_DIR}/winspool.def) 27 28set_target_properties(winspool PROPERTIES SUFFIX ".drv") 29set_module_type(winspool win32dll UNICODE) 30target_link_libraries(winspool wine ${PSEH_LIB}) 31add_importlibs(winspool advapi32 gdi32 rpcrt4 msvcrt kernel32 ntdll) 32add_pch(winspool precomp.h SOURCE) 33add_cd_file(TARGET winspool DESTINATION reactos/system32 FOR all) 34