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    devmode.c
8    jobs.c
9    main.c
10    monitors.c
11    ports.c
12    precomp.h
13    printerdata.c
14    printerdrivers.c
15    printers.c
16    printprocessors.c
17    printproviders.c
18    ${CMAKE_CURRENT_BINARY_DIR}/winspool_c.c)
19
20add_library(winspool SHARED
21    ${SOURCE}
22    winspool.rc
23    ${CMAKE_CURRENT_BINARY_DIR}/winspool_stubs.c
24    ${CMAKE_CURRENT_BINARY_DIR}/winspool.def)
25
26set_target_properties(winspool PROPERTIES SUFFIX ".drv")
27set_module_type(winspool win32dll UNICODE)
28target_link_libraries(winspool wine ${PSEH_LIB})
29add_importlibs(winspool advapi32 gdi32 rpcrt4 msvcrt kernel32 ntdll)
30add_pch(winspool precomp.h SOURCE)
31add_cd_file(TARGET winspool DESTINATION reactos/system32 FOR all)
32