* Sync to recent trunk (r52563).
[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 if(MSVC)
27 list(APPEND SOURCE msvc.S)
28 endif()
29
30 remove_definitions(-D_WIN32_WINNT=0x502)
31 add_definitions(-D_WIN32_WINNT=0x600)
32
33 add_definitions(
34 -D_RPCRT4_
35 -DCOM_NO_WINDOWS_H
36 -DMSWMSG)
37
38 spec2def(rpcrt4.dll rpcrt4.spec)
39
40 add_library(rpcrt4 SHARED ${SOURCE})
41
42 set_module_type(rpcrt4 win32dll)
43
44 include_directories(
45 ${REACTOS_SOURCE_DIR}/include/reactos/wine
46 ${REACTOS_BINARY_DIR}/include/reactos/wine)
47
48 target_link_libraries(rpcrt4
49 wine
50 uuid
51 epmrpc
52 ${PSEH_LIB})
53
54 add_importlibs(rpcrt4 msvcrt user32 advapi32 secur32 iphlpapi ws2_32 kernel32 ntdll)
55 add_dependencies(rpcrt4 winesdk)
56 add_cd_file(TARGET rpcrt4 DESTINATION reactos/system32 FOR all)
57 add_importlib_target(rpcrt4.spec)