Add CMake install support, tests

This commit is contained in:
Peter Dimov committed 2020-01-05 15:24:23 +02:00
1 parent 0304ee7581
commit 05e3580b62
3 files changed
+48 -9

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
# Copyright 2018, 2019 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()
file(GLOB tests RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
set(BOOST_TEST_LINK_LIBRARIES Boost::move Boost::assert Boost::config Boost::container Boost::core Boost::static_assert Boost::timer)
foreach(test IN LISTS tests)
boost_test(SOURCES ${test})
endforeach()