diff options
Diffstat (limited to 'src/boost/libs/parameter/test/CMakeLists.txt')
-rw-r--r-- | src/boost/libs/parameter/test/CMakeLists.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/boost/libs/parameter/test/CMakeLists.txt b/src/boost/libs/parameter/test/CMakeLists.txt new file mode 100644 index 000000000..d5086b6ed --- /dev/null +++ b/src/boost/libs/parameter/test/CMakeLists.txt @@ -0,0 +1,27 @@ +# Copyright 2019 Mike Dev +# Distributed under the Boost Software License, Version 1.0. +# See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt +# +# NOTE: CMake support for Boost.Parameter is currently experimental at best +# and the interface is likely to change in the future + +# TODO: Also process literate tests +file(GLOB test_files *.cpp) + +# remove some test for which the dependencies are not yet available or have special requirements +# TODO: enable more tests +list(FILTER test_files EXCLUDE REGEX + efficiency|deduced_unmatched_arg|python_test|duplicates) + +foreach(file IN LISTS test_files) + + get_filename_component(core_name ${file} NAME_WE) + set(test_name test_boost_parameter_${core_name}) + + add_executable(${test_name} ${file}) + # add Boost.Parameter and any libraries that are only needed by the tests (none at the moment) + target_link_libraries(${test_name} Boost::parameter) + + add_test(NAME ${test_name} COMMAND ${test_name}) + +endforeach()
\ No newline at end of file |