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    xcv.c
22    ${CMAKE_CURRENT_BINARY_DIR}/winspool_s.c)
23
24add_executable(spoolsv ${SOURCE} spoolsv.rc)
25
26if(USE_CLANG_CL)
27    target_compile_options(spoolsv PRIVATE "-Wno-cast-calling-convention")
28endif()
29
30set_module_type(spoolsv win32cui UNICODE)
31target_link_libraries(spoolsv wine)
32add_delay_importlibs(spoolsv spoolss)
33add_importlibs(spoolsv advapi32 rpcrt4 msvcrt kernel32 ntdll)
34add_pch(spoolsv precomp.h SOURCE)
35add_cd_file(TARGET spoolsv DESTINATION reactos/system32 FOR all)
36