[WSHOM_WINETEST] Sync with Wine Staging 4.18. CORE-16441
[reactos.git] / dll / win32 / olepro32 / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4 spec2def(olepro32.dll olepro32.spec)
5 add_typelib(olepro.idl)
6
7 list(APPEND SOURCE
8 olepro32stubs.c
9 ${CMAKE_CURRENT_BINARY_DIR}/olepro32.def)
10
11 list(APPEND olepro32_rc_deps
12 ${CMAKE_CURRENT_SOURCE_DIR}/olepro_t.rgs
13 ${CMAKE_CURRENT_BINARY_DIR}/olepro.tlb)
14
15 set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${olepro32_rc_deps}")
16
17 add_library(olepro32 MODULE ${SOURCE} version.rc)
18 add_dependencies(olepro32 stdole2)
19 set_module_type(olepro32 win32dll)
20 target_link_libraries(olepro32 wine)
21 add_importlibs(olepro32 oleaut32 msvcrt kernel32 ntdll)
22 add_cd_file(TARGET olepro32 DESTINATION reactos/system32 FOR all)