From 68affa1706d99863317c2bc522c32061a5577967 Mon Sep 17 00:00:00 2001 From: Mike Dev Date: Tue, 18 Sep 2018 13:19:17 +0200 Subject: [PATCH] [CMake] Generate cmake target that other libraries can use ... to express their dependency on this library and retrieve any configuration information such as the include directory, binary to link to (if any), transitive dependencies, necessary compiler options or the required c++ standards level. --- CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..ac66c832 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,26 @@ +# Copyright 2018 Mike Dev +# Distributed under the Boost Software License, Version 1.0. +# See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt + +cmake_minimum_required(VERSION 3.5) +project(BoostFusion LANGUAGES CXX) + +add_library(boost_fusion INTERFACE) +add_library(Boost::fusion ALIAS boost_fusion) + +target_include_directories(boost_fusion INTERFACE include) + +target_link_libraries(boost_fusion + INTERFACE + Boost::config + Boost::container_hash + Boost::core + Boost::function_types + Boost::mpl + Boost::preprocessor + Boost::static_assert + Boost::tuple + Boost::type_traits + Boost::typeof + Boost::utility +)