c62df39327ae0575c8d585f23c9e893eb696f604
[reactos.git] / dll / win32 / rpcrt4 / CMakeLists.txt
1
2 list(APPEND SOURCE
3 cproxy.c
4 cpsf.c
5 cstub.c
6 ndr_clientserver.c
7 ndr_contexthandle.c
8 ndr_es.c
9 ndr_fullpointer.c
10 ndr_marshall.c
11 ndr_ole.c
12 ndr_stubless.c
13 rpc_assoc.c
14 rpc_async.c
15 rpc_binding.c
16 rpc_epmap.c
17 rpc_message.c
18 rpcrt4.rc
19 rpcrt4_main.c
20 rpc_server.c
21 rpc_transport.c
22 unix_func.c
23 ${CMAKE_CURRENT_BINARY_DIR}/rpcrt4.def)
24
25 remove_definitions(-D_WIN32_WINNT=0x502)
26 add_definitions(-D_WIN32_WINNT=0x600)
27
28 add_definitions(
29 -D_RPCRT4_
30 -DCOM_NO_WINDOWS_H
31 -DMSWMSG)
32
33 spec2def(rpcrt4.dll rpcrt4.spec)
34
35 add_library(rpcrt4 SHARED ${SOURCE})
36
37 set_module_type(rpcrt4 win32dll)
38
39 include_directories(
40 ${REACTOS_SOURCE_DIR}/include/reactos/wine
41 ${REACTOS_BINARY_DIR}/include/reactos/wine)
42
43 target_link_libraries(rpcrt4
44 wine
45 uuid
46 epmrpc
47 ${PSEH_LIB})
48
49 add_importlibs(rpcrt4 msvcrt user32 advapi32 secur32 iphlpapi ws2_32 kernel32 ntdll)
50 add_dependencies(rpcrt4 winesdk)
51 add_cab_target(rpcrt4 1)
52 add_importlib_target(rpcrt4.spec)