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 4 5include(BoostTest OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST) 6 7if(NOT HAVE_BOOST_TEST) 8 return() 9endif() 10 11file(GLOB tests RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp) 12 13set(BOOST_TEST_LINK_LIBRARIES Boost::move Boost::config Boost::container Boost::core Boost::static_assert Boost::timer) 14 15foreach(test IN LISTS tests) 16 17 boost_test(SOURCES ${test}) 18 19endforeach() 20