From 3e8db7a8644a0693ad04414894a23ff3953d7727 Mon Sep 17 00:00:00 2001 From: Mike-Devel Date: Sat, 12 Dec 2020 16:12:25 +0100 Subject: [PATCH] Add basic cmake support Just copy pasting the output of Peter Dimov's boost dep `boostdep --cmake range`. No tests yet. --- CMakeLists.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000..036070faa --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,40 @@ +# Generated by `boostdep --cmake range` +# Copyright 2020 Peter Dimov +# Distributed under the Boost Software License, Version 1.0. +# https://www.boost.org/LICENSE_1_0.txt + +cmake_minimum_required(VERSION 3.5...3.16) + +project(boost_range VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) + +add_library(boost_range INTERFACE) +add_library(Boost::range ALIAS boost_range) + +target_include_directories(boost_range INTERFACE include) + +target_link_libraries(boost_range + INTERFACE + Boost::array + Boost::assert + Boost::concept_check + Boost::config + Boost::container_hash + Boost::conversion + Boost::core + Boost::detail + Boost::iterator + Boost::mpl + Boost::optional + Boost::preprocessor + Boost::regex + Boost::static_assert + Boost::tuple + Boost::type_traits + Boost::utility +) + +if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") + + add_subdirectory(test) + +endif()