f2b1144409944816c56de55ca229e78ce535a2a3
[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 rpc_protseq.c
18 server.c
19 testlist.c
20 ${CMAKE_CURRENT_BINARY_DIR}/server_c.c
21 ${CMAKE_CURRENT_BINARY_DIR}/server_s.c)
22
23 if(MSVC)
24 # The nmake generator misses this dependency, so set it explicitly until this bug is fixed.
25 set_source_files_properties(server.c PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/server_s.h)
26 endif()
27
28 add_executable(rpcrt4_winetest ${SOURCE})
29 target_link_libraries(rpcrt4_winetest uuid wine ${PSEH_LIB})
30 set_module_type(rpcrt4_winetest win32cui)
31 add_importlibs(rpcrt4_winetest ole32 rpcrt4 msvcrt kernel32 ntdll)
32 add_cd_file(TARGET rpcrt4_winetest DESTINATION reactos/bin FOR all)
33
34 if(NOT MSVC)
35 add_target_compile_flags(rpcrt4_winetest "-Wno-format")
36 endif()