[PRINTING]
[reactos.git] / reactos / win32ss / printing / base / winspool / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
3 add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winspool.idl)
4 spec2def(winspool.drv winspool.spec ADD_IMPORTLIB)
5
6 list(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
20 add_library(winspool SHARED
21 ${SOURCE}
22 winspool.rc
23 ${CMAKE_CURRENT_BINARY_DIR}/winspool_stubs.c
24 ${CMAKE_CURRENT_BINARY_DIR}/winspool.def)
25
26 set_target_properties(winspool PROPERTIES SUFFIX ".drv")
27 set_module_type(winspool win32dll UNICODE)
28 target_link_libraries(winspool wine ${PSEH_LIB})
29 add_importlibs(winspool advapi32 gdi32 rpcrt4 msvcrt kernel32 ntdll)
30 add_pch(winspool precomp.h SOURCE)
31 add_cd_file(TARGET winspool DESTINATION reactos/system32 FOR all)