reactos/rostests/winetests/rpcrt4/CMakeLists.txt
Jérôme Gardou 0248645f79 [WINETESTS/RPCRT4]
Until now, rpcrt4 winetests where badly broken : client calls remotely forwarded to serverside functions which called... client side functions. One has to wonder how testbot survived the operation
- Cmake : fix that
- rbuild : add a hack keeping the old behaviour, because I don't know how to make this right

svn path=/trunk/; revision=53503
2011-08-30 20:49:31 +00:00

40 lines
880 B
CMake

remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x500)
add_definitions(
-D__ROS_LONG64__
-D_DLL -D__USE_CRTIMP)
if(MSVC)
set(IDL_FLAGS ${IDL_FLAGS} /prefix server s_)
else()
set(IDL_FLAGS ${IDL_FLAGS} --prefix-server=s_)
endif()
add_rpc_files(client server.idl)
add_rpc_files(server server.idl)
unset(IDL_FLAGS)
list(APPEND SOURCE
cstub.c
generated.c
ndr_marshall.c
rpc.c
rpc_async.c
rpc_protseq.c
server.c
testlist.c
${CMAKE_CURRENT_BINARY_DIR}/server_c.c
${CMAKE_CURRENT_BINARY_DIR}/server_s.c)
add_executable(rpcrt4_winetest ${SOURCE})
target_link_libraries(rpcrt4_winetest
uuid
wine
${PSEH_LIB})
set_module_type(rpcrt4_winetest win32cui)
add_importlibs(rpcrt4_winetest ole32 rpcrt4 msvcrt kernel32 ntdll)
add_cd_file(TARGET rpcrt4_winetest DESTINATION reactos/bin FOR all)