Commit 2ca9c6d1 authored by Jan Möbius's avatar Jan Möbius

Allow per plugin tests



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12881 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6ff5be04
......@@ -73,6 +73,35 @@ SET (CTEST_DROP_SITE_CDASH FALSE)
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR}/${_local_test_dir})
endforeach ()
# ========================================================================
# ========================================================================
# ========================================================================
# Add tests from plugins
# ========================================================================
# ========================================================================
# ========================================================================
file (
GLOB _plugins_in
RELATIVE "${CMAKE_SOURCE_DIR}"
"${CMAKE_SOURCE_DIR}/Plugin-*/CMakeLists.txt"
)
foreach (_plugin ${_plugins_in})
get_filename_component (_plugin_dir ${_plugin} PATH)
# If a test subdir exists, we add it here
if(IS_DIRECTORY ${CMAKE_SOURCE_DIR}/${_plugin_dir}/tests)
add_subdirectory(${CMAKE_SOURCE_DIR}/${_plugin_dir}/tests ${CMAKE_BINARY_DIR}/tests/${_plugin_dir} )
endif()
endforeach ()
endif()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment