* Sync the recent cmake branch changes.
[reactos.git] / dll / win32 / qmgr / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
4
5 set_rc_compiler()
6
7 generate_idl_iids(qmgr_local.idl)
8
9 spec2def(qmgr.dll qmgr.spec)
10
11 list(APPEND SOURCE
12 enum_files.c
13 enum_jobs.c
14 factory.c
15 file.c
16 job.c
17 qmgr.c
18 qmgr_main.c
19 service.c
20 rsrc.rc
21 ${CMAKE_CURRENT_BINARY_DIR}/qmgr_local_i.c
22 ${CMAKE_CURRENT_BINARY_DIR}/qmgr.def)
23
24 add_library(qmgr SHARED ${SOURCE})
25
26 add_idl_headers(qmgr_idlheader qmgr_local.idl)
27
28 set_module_type(qmgr win32dll)
29 target_link_libraries(qmgr uuid wine)
30 add_importlibs(qmgr ole32 wininet urlmon advapi32 msvcrt kernel32 ntdll)
31 add_cd_file(TARGET qmgr DESTINATION reactos/system32 FOR all)
32 add_dependencies(qmgr qmgr_idlheader)