mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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
40 lines
1.2 KiB
CMake
40 lines
1.2 KiB
CMake
|
|
add_definitions(-DUSE_WINE_TODOS)
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
add_typelib(test_reg.idl test_tlb.idl tmarshal.idl)
|
|
add_idl_Headers(oleaut32_idlheaders test_reg.idl test_tlb.idl tmarshal.idl)
|
|
generate_idl_iids(test_reg.idl test_tlb.idl tmarshal.idl)
|
|
|
|
list(APPEND SOURCE
|
|
dispatch.c
|
|
olefont.c
|
|
olepicture.c
|
|
safearray.c
|
|
testlist.c
|
|
tmarshal.c
|
|
typelib.c
|
|
usrmarshal.c
|
|
varformat.c
|
|
vartest.c
|
|
vartype.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/test_reg_i.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/test_tlb_i.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/tmarshal_i.c)
|
|
|
|
set(tmarshal.rc_DEPS
|
|
${CMAKE_CURRENT_BINARY_DIR}/test_reg.tlb
|
|
${CMAKE_CURRENT_BINARY_DIR}/test_tlb.tlb
|
|
${CMAKE_CURRENT_BINARY_DIR}/tmarshal.tlb)
|
|
|
|
set_source_files_properties(tmarshal.rc PROPERTIES OBJECT_DEPENDS "${tmarshal.rc_DEPS}")
|
|
add_executable(oleaut32_winetest ${SOURCE} tmarshal.rc)
|
|
target_link_libraries(oleaut32_winetest uuid)
|
|
set_module_type(oleaut32_winetest win32cui)
|
|
add_importlibs(oleaut32_winetest oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 msvcrt kernel32)
|
|
|
|
if(MSVC)
|
|
add_importlibs(oleaut32_winetest ntdll)
|
|
endif()
|
|
|
|
add_dependencies(oleaut32_winetest stdole2 oleaut32_idlheaders)
|
|
add_rostests_file(TARGET oleaut32_winetest)
|