xref: /reactos/dll/win32/oleacc/CMakeLists.txt (revision cc3672cb)
1
2add_definitions(
3    -D__WINESRC__
4    -DENTRY_PREFIX=OLEACC_
5    -DPROXY_DELEGATION
6    -DWINE_REGISTER_DLL)
7
8include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
9spec2def(oleacc.dll oleacc.spec ADD_IMPORTLIB)
10
11list(APPEND SOURCE
12    client.c
13    main.c
14    propservice.c
15    window.c)
16
17list(APPEND PCH_SKIP_SOURCE
18    guid.c
19    ${CMAKE_CURRENT_BINARY_DIR}/oleacc_classes_p.c
20    ${CMAKE_CURRENT_BINARY_DIR}/oleacc_stubs.c)
21
22add_idl_headers(oleacc_idlheader oleacc_classes.idl)
23add_typelib(oleacc_classes.idl)
24add_rpcproxy_files(oleacc_classes.idl)
25
26list(APPEND oleacc_rc_deps
27    ${CMAKE_CURRENT_SOURCE_DIR}/oleacc_classes_r.rgs
28    ${CMAKE_CURRENT_SOURCE_DIR}/oleacc_classes_t.rgs
29    ${CMAKE_CURRENT_BINARY_DIR}/oleacc_classes.tlb)
30
31set_source_files_properties(oleacc.rc PROPERTIES OBJECT_DEPENDS "${oleacc_rc_deps}")
32
33add_library(oleacc MODULE
34    ${SOURCE}
35    ${PCH_SKIP_SOURCE}
36    oleacc.rc
37    ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
38    ${CMAKE_CURRENT_BINARY_DIR}/oleacc.def)
39
40add_dependencies(oleacc oleacc_idlheader stdole2)
41set_module_type(oleacc win32dll)
42target_link_libraries(oleacc uuid wine ${PSEH_LIB} oldnames)
43add_importlibs(oleacc oleaut32 ole32 user32 rpcrt4 msvcrt kernel32 ntdll)
44add_pch(oleacc precomp.h "${PCH_SKIP_SOURCE}")
45add_cd_file(TARGET oleacc DESTINATION reactos/system32 FOR all)
46