xref: /reactos/dll/win32/olepro32/CMakeLists.txt (revision 23373acb)
1c2c66affSColin Finck
2c2c66affSColin Finckadd_definitions(-D__WINESRC__)
3c2c66affSColin Finckinclude_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4c2c66affSColin Finckspec2def(olepro32.dll olepro32.spec)
5c2c66affSColin Finckadd_typelib(olepro.idl)
6c2c66affSColin Finck
7c2c66affSColin Fincklist(APPEND SOURCE
8c2c66affSColin Finck    olepro32stubs.c
9c2c66affSColin Finck    ${CMAKE_CURRENT_BINARY_DIR}/olepro32.def)
10c2c66affSColin Finck
11c2c66affSColin Fincklist(APPEND olepro32_rc_deps
12c2c66affSColin Finck    ${CMAKE_CURRENT_SOURCE_DIR}/olepro_t.rgs
13c2c66affSColin Finck    ${CMAKE_CURRENT_BINARY_DIR}/olepro.tlb)
14c2c66affSColin Finck
15c2c66affSColin Finckset_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${olepro32_rc_deps}")
16c2c66affSColin Finck
17*23373acbSJérôme Gardouadd_library(olepro32 MODULE ${SOURCE} version.rc)
18342c404cSThomas Faberadd_dependencies(olepro32 stdole2)
19c2c66affSColin Finckset_module_type(olepro32 win32dll)
20c2c66affSColin Fincktarget_link_libraries(olepro32 wine)
21c2c66affSColin Finckadd_importlibs(olepro32 oleaut32 msvcrt kernel32 ntdll)
22c2c66affSColin Finckadd_cd_file(TARGET olepro32 DESTINATION reactos/system32 FOR all)
23