2 spec2def(rpcrt4.dll rpcrt4.spec ADD_IMPORTLIB)
4 add_rpc_files(client epm.idl)
26 ${CMAKE_CURRENT_BINARY_DIR}/epm_c.c
27 ${CMAKE_CURRENT_BINARY_DIR}/rpcrt4_stubs.c
28 ${CMAKE_CURRENT_BINARY_DIR}/rpcrt4.def)
31 list(APPEND SOURCE msvc.S)
34 remove_definitions(-D_WIN32_WINNT=0x502)
35 add_definitions(-D_WIN32_WINNT=0x600)
42 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
44 add_library(rpcrt4 SHARED
48 set_module_type(rpcrt4 win32dll)
49 target_link_libraries(rpcrt4 wine uuid ${PSEH_LIB})
51 add_delay_importlibs(rpcrt4 iphlpapi wininet secur32 user32)
52 add_importlibs(rpcrt4 msvcrt advapi32 ws2_32 kernel32 ntdll)
53 add_cd_file(TARGET rpcrt4 DESTINATION reactos/system32 FOR all)
57 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
58 #allow_warnings(rpcrt4)
59 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")