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