[QMGR] Sync with Wine Staging 3.3. CORE-14434
[reactos.git] / dll / win32 / qmgr / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4 generate_idl_iids(qmgr_local.idl)
5 spec2def(qmgr.dll qmgr.spec)
6
7 list(APPEND SOURCE
8 enum_files.c
9 enum_jobs.c
10 factory.c
11 file.c
12 job.c
13 qmgr.c
14 qmgr_main.c
15 service.c
16 precomp.h
17 ${CMAKE_CURRENT_BINARY_DIR}/qmgr_local_i.c)
18
19 add_library(qmgr SHARED
20 ${SOURCE}
21 rsrc.rc
22 ${CMAKE_CURRENT_BINARY_DIR}/qmgr.def)
23
24 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/qmgr.rgs)
25 add_idl_headers(qmgr_idlheader qmgr_local.idl)
26 set_module_type(qmgr win32dll)
27 target_link_libraries(qmgr uuid wine)
28 add_importlibs(qmgr winhttp ole32 advapi32 msvcrt kernel32 ntdll)
29 add_pch(qmgr precomp.h SOURCE)
30 add_cd_file(TARGET qmgr DESTINATION reactos/system32 FOR all)
31 add_dependencies(qmgr qmgr_idlheader)