1 # Copyright 2018, 2019 Peter Dimov
2 # Distributed under the Boost Software License, Version 1.0.
3 # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
5 include(BoostTest OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST)
7 if(NOT HAVE_BOOST_TEST)
11 file(GLOB tests RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
13 set(BOOST_TEST_LINK_LIBRARIES Boost::move Boost::config Boost::container Boost::core Boost::static_assert)
15 foreach(test IN LISTS tests)
17 boost_test(SOURCES ${test})