[CMake] Add minimal cmake file

Supports the use of boost logic in a parent
cmake project via add_subdirectory( libs/logic )
This commit is contained in:
Mike Dev
2018-12-23 21:29:36 +01:00
committed by James E. King III
parent fd021e5eb7
commit 3a9110fc34

20
CMakeLists.txt Normal file
View File

@ -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
)