86741d7a72cada18576e4421851cc018c513a31f
[reactos.git] / dll / win32 / ole32 / CMakeLists.txt
1
2 list(APPEND SOURCE
3 antimoniker.c
4 bindctx.c
5 classmoniker.c
6 clipboard.c
7 comcat.c
8 compobj.c
9 compositemoniker.c
10 datacache.c
11 defaulthandler.c
12 dictionary.c
13 enumx.c
14 errorinfo.c
15 filelockbytes.c
16 filemoniker.c
17 ftmarshal.c
18 git.c
19 hglobalstream.c
20 ifs.c
21 itemmoniker.c
22 marshal.c
23 memlockbytes.c
24 moniker.c
25 ole2.c
26 ole2stubs.c
27 ole2impl.c
28 ole32_main.c
29 oleobj.c
30 oleproxy.c
31 pointermoniker.c
32 regsvr.c
33 rpc.c
34 stg_prop.c
35 stg_stream.c
36 storage32.c
37 stubmanager.c
38 usrmarshal.c
39 ole32res.rc
40 ${CMAKE_CURRENT_BINARY_DIR}/ole32.def)
41
42 remove_definitions(-D_WIN32_WINNT=0x502)
43 add_definitions(-D_WIN32_WINNT=0x600)
44
45 add_definitions(
46 -D__WINESRC__
47 -D_OLE32_
48 -DENTRY_PREFIX=OLE32_
49 -DPROXY_CLSID=CLSID_PSFactoryBuffer
50 -DREGISTER_PROXY_DLL
51 -DCOM_NO_WINDOWS_H)
52
53 include_directories(
54 ${CMAKE_CURRENT_BINARY_DIR}
55 ${REACTOS_SOURCE_DIR}/include/reactos/wine)
56
57 add_interface_definitions(ole32idl dcom.idl irot.idl)
58
59 rpcproxy(ole32
60 dcom.idl
61 ole32_unknwn.idl
62 ole32_objidl.idl
63 ole32_oleidl.idl)
64
65 spec2def(ole32.dll ole32.spec)
66
67 add_library(ole32 SHARED ${SOURCE})
68
69 set_module_type(ole32 win32dll)
70
71 target_link_libraries(ole32
72 wine
73 irot_client
74 ole32_proxy
75 uuid
76 ${PSEH_LIB})
77
78 add_importlibs(ole32 advapi32 user32 gdi32 rpcrt4 msvcrt kernel32 ntdll)
79
80 add_dependencies(ole32 ole32idl)
81 add_cab_target(ole32 1)
82 add_importlib_target(ole32.spec)