394810479c8f3af21272760738a101f8962e077c
[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
24 remove_definitions(-D_WIN32_WINNT=0x502)
25 add_definitions(-D_WIN32_WINNT=0x600)
26 add_definitions(-D_RPCRT4_)
27 add_definitions(-DCOM_NO_WINDOWS_H)
28 add_definitions(-DMSWMSG)
29
30 spec2def(rpcrt4 ${CMAKE_CURRENT_SOURCE_DIR}/rpcrt4.spec ${CMAKE_CURRENT_BINARY_DIR}/rpcrt4.def)
31
32 add_library(rpcrt4 SHARED ${SOURCE})
33
34 set_module_type(rpcrt4 win32dll)
35
36 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
37 include_directories(${REACTOS_BINARY_DIR}/include/reactos/wine)
38 target_link_libraries(rpcrt4
39 ${CMAKE_CURRENT_BINARY_DIR}/rpcrt4.def
40 wine
41 uuid
42 epm_client
43 pseh)
44
45 add_importlibs(rpcrt4 msvcrt user32 advapi32 secur32 iphlpapi ws2_32 kernel32 ntdll)
46 add_dependencies(rpcrt4 rpcrt4_def winesdk)