From 94f11c52ebe6ebdd319b704ac895881fa8287e89 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 21 Jun 2024 17:13:06 +0300 Subject: [PATCH] Add test/CMakeLists.txt --- test/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/CMakeLists.txt diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..132b377 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,15 @@ +# Copyright 2018-2020 Peter Dimov +# Distributed under the Boost Software License, Version 1.0. +# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt + +include(BoostTest OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST) + +if(NOT HAVE_BOOST_TEST) + return() +endif() + +set(BOOST_TEST_LINK_LIBRARIES Boost::stacktrace_basic Boost::core) + +boost_test(TYPE run SOURCES test.cpp) +boost_test(TYPE run SOURCES test_noop.cpp) +boost_test(TYPE run SOURCES test_trivial.cpp)