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