f3ab3dac8d7cc69588d293c1e281631d6ca8e508
[reactos.git] / reactos / win32ss / printing / base / winspool / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/idl)
3 add_rpc_files(client ${REACTOS_SOURCE_DIR}/include/reactos/idl/winspool.idl)
4 spec2def(winspool winspool.spec ADD_IMPORTLIB)
5
6 list(APPEND SOURCE
7 main.c
8 precomp.h
9 ${CMAKE_CURRENT_BINARY_DIR}/winspool_c.c)
10
11 add_library(winspool SHARED
12 ${SOURCE}
13 winspool.rc
14 ${CMAKE_CURRENT_BINARY_DIR}/winspool_stubs.c
15 ${CMAKE_CURRENT_BINARY_DIR}/winspool.def)
16
17 set_target_properties(winspool PROPERTIES SUFFIX ".drv")
18 set_module_type(winspool win32dll UNICODE)
19 target_link_libraries(winspool wine)
20 add_importlibs(winspool kernel32 msvcrt ntdll rpcrt4)
21 add_pch(winspool precomp.h SOURCE)
22 add_cd_file(TARGET winspool DESTINATION reactos/system32 FOR all)