From 3a9110fc34ff0248062c83466fcfae0bc0a113c1 Mon Sep 17 00:00:00 2001 From: Mike Dev Date: Sun, 23 Dec 2018 21:29:36 +0100 Subject: [PATCH] [CMake] Add minimal cmake file Supports the use of boost logic in a parent cmake project via add_subdirectory( libs/logic ) --- CMakeLists.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4951cb6 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,20 @@ +# Copyright 2018 Mike Dev +# 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.Logic is currently experimental at best +# and the interface is likely to change in the future + +cmake_minimum_required( VERSION 3.5 ) +project( BoostLogic LANGUAGES CXX ) + +add_library( boost_logic INTERFACE ) +add_library( Boost::logic ALIAS boost_logic ) + +target_include_directories( boost_logic INTERFACE include ) + +target_link_libraries( boost_logic + INTERFACE + Boost::config + Boost::core +)