b07f93476c48b8533e2c08256187351f05716c80
[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(-DUSE_WINE_TODOS)
5 include_directories(${CMAKE_CURRENT_BINARY_DIR})
6 set(IDL_FLAGS ${IDL_FLAGS} --prefix-server=s_)
7 add_rpc_files(client server.idl)
8 add_rpc_files(server server.idl)
9 unset(IDL_FLAGS)
10
11 list(APPEND SOURCE
12 cstub.c
13 generated.c
14 ndr_marshall.c
15 rpc.c
16 rpc_async.c
17 server.c
18 testlist.c
19 ${CMAKE_CURRENT_BINARY_DIR}/server_c.c
20 ${CMAKE_CURRENT_BINARY_DIR}/server_s.c)
21
22 if(MSVC)
23 # The nmake generator misses this dependency, so set it explicitly until this bug is fixed.
24 set_source_files_properties(server.c PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/server_s.h)
25 endif()
26
27 add_executable(rpcrt4_winetest ${SOURCE})
28 target_link_libraries(rpcrt4_winetest uuid wine ${PSEH_LIB})
29 set_module_type(rpcrt4_winetest win32cui)
30 add_importlibs(rpcrt4_winetest oleaut32 ole32 rpcrt4 secur32 advapi32 msvcrt kernel32 ntdll)
31 add_rostests_file(TARGET rpcrt4_winetest)
32
33 if(NOT MSVC)
34 add_target_compile_flags(rpcrt4_winetest "-Wno-format")
35 endif()