1*c2c66affSColin Finck 2*c2c66affSColin Finckinclude_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl) 3*c2c66affSColin Finckadd_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winspool.idl) 4*c2c66affSColin Finckspec2def(winspool.drv winspool.spec ADD_IMPORTLIB) 5*c2c66affSColin Finck 6*c2c66affSColin Fincklist(APPEND SOURCE 7*c2c66affSColin Finck devmode.c 8*c2c66affSColin Finck jobs.c 9*c2c66affSColin Finck main.c 10*c2c66affSColin Finck monitors.c 11*c2c66affSColin Finck ports.c 12*c2c66affSColin Finck precomp.h 13*c2c66affSColin Finck printerdata.c 14*c2c66affSColin Finck printerdrivers.c 15*c2c66affSColin Finck printers.c 16*c2c66affSColin Finck printprocessors.c 17*c2c66affSColin Finck printproviders.c 18*c2c66affSColin Finck ${CMAKE_CURRENT_BINARY_DIR}/winspool_c.c) 19*c2c66affSColin Finck 20*c2c66affSColin Finckadd_library(winspool SHARED 21*c2c66affSColin Finck ${SOURCE} 22*c2c66affSColin Finck winspool.rc 23*c2c66affSColin Finck ${CMAKE_CURRENT_BINARY_DIR}/winspool_stubs.c 24*c2c66affSColin Finck ${CMAKE_CURRENT_BINARY_DIR}/winspool.def) 25*c2c66affSColin Finck 26*c2c66affSColin Finckset_target_properties(winspool PROPERTIES SUFFIX ".drv") 27*c2c66affSColin Finckset_module_type(winspool win32dll UNICODE) 28*c2c66affSColin Fincktarget_link_libraries(winspool wine ${PSEH_LIB}) 29*c2c66affSColin Finckadd_importlibs(winspool advapi32 gdi32 rpcrt4 msvcrt kernel32 ntdll) 30*c2c66affSColin Finckadd_pch(winspool precomp.h SOURCE) 31*c2c66affSColin Finckadd_cd_file(TARGET winspool DESTINATION reactos/system32 FOR all) 32