1 2remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502) 3 4add_definitions( 5 -DUSE_WINE_TODOS 6 -DWINETEST_USE_DBGSTR_LONGLONG) 7 8include_directories(${CMAKE_CURRENT_BINARY_DIR}) 9set(IDL_FLAGS ${IDL_FLAGS} --prefix-server=s_) 10add_rpc_files(client server.idl) 11add_rpc_files(server server.idl) 12unset(IDL_FLAGS) 13 14list(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 25if(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) 28endif() 29 30add_executable(rpcrt4_winetest ${SOURCE}) 31 32if(USE_CLANG_CL OR (NOT MSVC)) 33 add_target_compile_flags(rpcrt4_winetest "-Wno-format") 34 if(USE_CLANG_CL) 35 add_target_compile_flags(rpcrt4_winetest "-Wno-cast-calling-convention") 36 endif() 37endif() 38 39target_link_libraries(rpcrt4_winetest uuid wine ${PSEH_LIB}) 40set_module_type(rpcrt4_winetest win32cui) 41add_importlibs(rpcrt4_winetest oleaut32 ole32 rpcrt4 secur32 advapi32 msvcrt kernel32 ntdll) 42add_rostests_file(TARGET rpcrt4_winetest) 43