From 6806d9952994bbf4f20de5d5a6db430d634a521e Mon Sep 17 00:00:00 2001 From: Mike Dev Date: Tue, 18 Sep 2018 13:19:15 +0200 Subject: [PATCH 1/2] [CMake] Add minimal cmake support - CMake file only supports add_subdirectory workflow. - Provides target Boost::conversion, but doesn't support installation or running unit tests. --- CMakeLists.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..27cee87 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,24 @@ +# Copyright 2019 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 +# +# NOTE: CMake support for Boost.Conversion is currently experimental at best +# and the interface is likely to change in the future + +cmake_minimum_required( VERSION 3.5 ) +project( boost-conversion LANGUAGES CXX ) + +add_library( boost_conversion INTERFACE ) +add_library( Boost::conversion ALIAS boost_conversion ) + +target_include_directories( boost_conversion INTERFACE include ) + +target_link_libraries( boost_conversion + INTERFACE + Boost::assert + Boost::config + Boost::smart_ptr + Boost::throw_exception + Boost::type_traits + Boost::typeof +) From 24f2769eb7c5636aba80edd49f2eb6d51490b21e Mon Sep 17 00:00:00 2001 From: Mike-Devel Date: Sun, 3 Mar 2019 10:11:11 +0100 Subject: [PATCH 2/2] [CMake] Use PascalCase in project name --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27cee87..b333aab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ # and the interface is likely to change in the future cmake_minimum_required( VERSION 3.5 ) -project( boost-conversion LANGUAGES CXX ) +project( BoostConversion LANGUAGES CXX ) add_library( boost_conversion INTERFACE ) add_library( Boost::conversion ALIAS boost_conversion )