[RPCRT4_WINETEST] Sync with Wine Staging 2.16. CORE-13762
[reactos.git] / rostests / winetests / rpcrt4 / CMakeLists.txt
1
2 remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
3
4 add_definitions(
5 -DUSE_WINE_TODOS
6 -DWINETEST_USE_DBGSTR_LONGLONG)
7
8 include_directories(${CMAKE_CURRENT_BINARY_DIR})
9 set(IDL_FLAGS ${IDL_FLAGS} --prefix-server=s_)
10 add_rpc_files(client server.idl)
11 add_rpc_files(server server.idl)
12 unset(IDL_FLAGS)
13
14 list(APPEND SOURCE
15 cstub.c
16 generated.c
17 ndr_marshall.c
18 rpc.c
19 rpc_async.c
20 server.c
21 testlist.c
22 ${CMAKE_CURRENT_BINARY_DIR}/server_c.c
23 ${CMAKE_CURRENT_BINARY_DIR}/server_s.c)
24
25 if(MSVC)
26 # The nmake generator misses this dependency, so set it explicitly until this bug is fixed.
27 set_source_files_properties(server.c PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/server_s.h)
28 endif()
29
30 add_executable(rpcrt4_winetest ${SOURCE})
31 target_link_libraries(rpcrt4_winetest uuid wine ${PSEH_LIB})
32 set_module_type(rpcrt4_winetest win32cui)
33 add_importlibs(rpcrt4_winetest oleaut32 ole32 rpcrt4 secur32 advapi32 msvcrt kernel32 ntdll)
34 add_rostests_file(TARGET rpcrt4_winetest)
35
36 if(NOT MSVC)
37 add_target_compile_flags(rpcrt4_winetest "-Wno-format")
38 endif()