mirror of
https://github.com/reactos/reactos.git
synced 2024-09-05 18:26:53 +00:00
36 lines
878 B
CMake
36 lines
878 B
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
|
|
add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winspool.idl)
|
|
|
|
list(APPEND SOURCE
|
|
forms.c
|
|
init.c
|
|
jobs.c
|
|
main.c
|
|
monitors.c
|
|
notifications.c
|
|
ports.c
|
|
precomp.h
|
|
printerdata.c
|
|
printerdrivers.c
|
|
printers.c
|
|
printprocessors.c
|
|
printproviders.c
|
|
rpcserver.c
|
|
rpcstubs.c
|
|
xcv.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/winspool_s.c)
|
|
|
|
add_executable(spoolsv ${SOURCE} spoolsv.rc)
|
|
|
|
if(USE_CLANG_CL)
|
|
add_target_compile_flags(spoolsv "-Wno-cast-calling-convention")
|
|
endif()
|
|
|
|
set_module_type(spoolsv win32cui UNICODE)
|
|
target_link_libraries(spoolsv wine)
|
|
add_delay_importlibs(spoolsv spoolss)
|
|
add_importlibs(spoolsv advapi32 rpcrt4 msvcrt kernel32 ntdll)
|
|
add_pch(spoolsv precomp.h SOURCE)
|
|
add_cd_file(TARGET spoolsv DESTINATION reactos/system32 FOR all)
|