mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00

- Add a function "add_rostests_file" that calls both add_cd_file() and install() accordingly for regression tests. Use this function everywhere in rostests where add_cd_file() was used previously. This puts tests always in the right place on CD and also generates proper installation rules for them. - Add a custom target "rostests_install" that performs an "install" on all rostests components. This finally gives us a convenient and reliable way to copy all regression tests and their dependencies into a single directory (specified by the ROSTESTS_INSTALL environment variable). Will be used on the WHS-Testbot to let it finally run each and every test. CORE-12401 ONLINE-441 svn path=/trunk/; revision=73533
36 lines
1.1 KiB
CMake
36 lines
1.1 KiB
CMake
|
|
remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-DUSE_WINE_TODOS)
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
set(IDL_FLAGS ${IDL_FLAGS} --prefix-server=s_)
|
|
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)
|
|
|
|
if(MSVC)
|
|
# The nmake generator misses this dependency, so set it explicitly until this bug is fixed.
|
|
set_source_files_properties(server.c PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/server_s.h)
|
|
endif()
|
|
|
|
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 secur32 msvcrt kernel32 ntdll)
|
|
add_rostests_file(TARGET rpcrt4_winetest)
|
|
|
|
if(NOT MSVC)
|
|
add_target_compile_flags(rpcrt4_winetest "-Wno-format")
|
|
endif()
|