-# Copyright 2019 Sam Day
+# Generated by `boostdep --cmake dynamic_bitset`
+# Copyright 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
-#
-# NOTE: CMake support for Boost.dynamic_bitset is currently experimental at best
-# and the interface is likely to change in the future
+# https://www.boost.org/LICENSE_1_0.txt
-cmake_minimum_required(VERSION 3.5)
-project(BoostDynamicBitset LANGUAGES CXX)
+cmake_minimum_required(VERSION 3.5...3.16)
+
+project(boost_dynamic_bitset VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
add_library(boost_dynamic_bitset INTERFACE)
add_library(Boost::dynamic_bitset ALIAS boost_dynamic_bitset)
target_include_directories(boost_dynamic_bitset INTERFACE include)
target_link_libraries(boost_dynamic_bitset
- INTERFACE
- Boost::assert
- Boost::config
- Boost::core
- Boost::integer
- Boost::move
- Boost::static_assert
- Boost::throw_exception
- )
+ INTERFACE
+ Boost::assert
+ Boost::config
+ Boost::container_hash
+ Boost::core
+ Boost::integer
+ Boost::move
+ Boost::static_assert
+ Boost::throw_exception
+)
+
+if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
+
+ add_subdirectory(test)
+
+endif()
+