[CMAKE]
[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_stubs.c
24 ${CMAKE_CURRENT_BINARY_DIR}/rpcrt4.def)
25
26 remove_definitions(-D_WIN32_WINNT=0x502)
27 add_definitions(-D_WIN32_WINNT=0x600)
28
29 add_definitions(
30 -D_RPCRT4_
31 -DCOM_NO_WINDOWS_H
32 -DMSWMSG)
33
34 spec2def(rpcrt4.dll rpcrt4.spec)
35
36 add_library(rpcrt4 SHARED ${SOURCE})
37
38 set_module_type(rpcrt4 win32dll)
39
40 include_directories(
41 ${REACTOS_SOURCE_DIR}/include/reactos/wine
42 ${REACTOS_BINARY_DIR}/include/reactos/wine)
43
44 target_link_libraries(rpcrt4
45 wine
46 uuid
47 epmrpc
48 ${PSEH_LIB})
49
50 add_importlibs(rpcrt4 msvcrt user32 advapi32 secur32 iphlpapi ws2_32 kernel32 ntdll)
51 add_dependencies(rpcrt4 winesdk)
52 add_cd_file(TARGET rpcrt4 DESTINATION reactos/system32)
53 add_importlib_target(rpcrt4.spec)