From 68affa1706d99863317c2bc522c32061a5577967 Mon Sep 17 00:00:00 2001 From: Mike Dev Date: Tue, 18 Sep 2018 13:19:17 +0200 Subject: [PATCH 1/2] [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 +) From b180146e3d3652edb9a93de0fb16fb28f5efa6ee Mon Sep 17 00:00:00 2001 From: Mike Dev Date: Mon, 28 Jan 2019 13:02:40 +0100 Subject: [PATCH 2/2] [CMake] Add disclaimer and turn tabs into spaces --- CMakeLists.txt | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac66c832..2972717b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ # 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 +# +# Partial (add_subdirectory only) and experimental CMake support +# Subject to change; please do not rely on the contents of this file yet cmake_minimum_required(VERSION 3.5) project(BoostFusion LANGUAGES CXX) @@ -11,16 +14,16 @@ 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 + 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 )