1
2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
3add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winspool.idl)
4
5list(APPEND SOURCE
6    forms.c
7    init.c
8    jobs.c
9    main.c
10    monitors.c
11    notifications.c
12    ports.c
13    precomp.h
14    printerdata.c
15    printerdrivers.c
16    printers.c
17    printprocessors.c
18    printproviders.c
19    rpcserver.c
20    rpcstubs.c
21    spoolfile.c
22    xcv.c
23    ${CMAKE_CURRENT_BINARY_DIR}/winspool_s.c)
24
25add_executable(spoolsv ${SOURCE} spoolsv.rc)
26
27if(USE_CLANG_CL)
28    target_compile_options(spoolsv PRIVATE "-Wno-cast-calling-convention")
29endif()
30
31set_module_type(spoolsv win32cui UNICODE)
32target_link_libraries(spoolsv wine)
33add_delay_importlibs(spoolsv spoolss)
34add_importlibs(spoolsv advapi32 rpcrt4 msvcrt kernel32 ntdll)
35add_pch(spoolsv precomp.h SOURCE)
36add_cd_file(TARGET spoolsv DESTINATION reactos/system32 FOR all)
37