1 2add_definitions(-D__WINESRC__) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4generate_idl_iids(qmgr_local.idl) 5spec2def(qmgr.dll qmgr.spec) 6 7list(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 19add_library(qmgr SHARED 20 ${SOURCE} 21 rsrc.rc 22 ${CMAKE_CURRENT_BINARY_DIR}/qmgr.def) 23 24set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/qmgr.rgs) 25add_idl_headers(qmgr_idlheader qmgr_local.idl) 26set_module_type(qmgr win32dll) 27target_link_libraries(qmgr uuid wine) 28add_importlibs(qmgr winhttp ole32 advapi32 msvcrt kernel32 ntdll) 29add_pch(qmgr precomp.h SOURCE) 30add_cd_file(TARGET qmgr DESTINATION reactos/system32 FOR all) 31add_dependencies(qmgr qmgr_idlheader) 32