mirror of
https://github.com/reactos/reactos.git
synced 2024-09-04 01:29:31 +00:00
33 lines
914 B
CMake
33 lines
914 B
CMake
|
|
add_definitions(-D__WINESRC__)
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
spec2def(oleacc.dll oleacc.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
client.c
|
|
main.c
|
|
propservice.c
|
|
window.c
|
|
oleacc_private.h)
|
|
|
|
add_typelib(oleacc_classes.idl)
|
|
|
|
list(APPEND oleacc_rc_deps
|
|
${CMAKE_CURRENT_SOURCE_DIR}/oleacc_classes.rgs
|
|
${CMAKE_CURRENT_BINARY_DIR}/oleacc_classes.tlb)
|
|
|
|
set_source_files_properties(oleacc.rc PROPERTIES OBJECT_DEPENDS "${oleacc_rc_deps}")
|
|
|
|
add_library(oleacc SHARED
|
|
${SOURCE}
|
|
oleacc.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/oleacc_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/oleacc.def)
|
|
|
|
add_dependencies(oleacc stdole2)
|
|
set_module_type(oleacc win32dll)
|
|
target_link_libraries(oleacc uuid wine)
|
|
add_importlibs(oleacc oleaut32 ole32 user32 msvcrt kernel32 ntdll)
|
|
add_pch(oleacc oleacc_private.h SOURCE)
|
|
add_cd_file(TARGET oleacc DESTINATION reactos/system32 FOR all)
|