[OLEPRO32] Sync with Wine Staging 1.9.4. CORE-10912
[reactos.git] / reactos / dll / win32 / olepro32 / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/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 SHARED ${SOURCE} version.rc)
18 set_module_type(olepro32 win32dll)
19 target_link_libraries(olepro32 wine)
20 add_importlibs(olepro32 oleaut32 msvcrt kernel32 ntdll)
21 add_cd_file(TARGET olepro32 DESTINATION reactos/system32 FOR all)