1# Copyright 2018, 2019 Peter Dimov 2# Distributed under the Boost Software License, Version 1.0. 3# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt 4 5cmake_minimum_required(VERSION 3.5...3.16) 6 7project(boost_core VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) 8 9add_library(boost_core INTERFACE) 10add_library(Boost::core ALIAS boost_core) 11 12target_include_directories(boost_core INTERFACE include) 13 14target_link_libraries(boost_core 15 INTERFACE 16 Boost::assert 17 Boost::config 18) 19 20if(BOOST_SUPERPROJECT_VERSION) 21 22 include(BoostInstall) 23 boost_install(TARGETS boost_core HEADER_DIRECTORY include/) 24 25endif() 26 27if(BUILD_TESTING) 28 29 add_subdirectory(test) 30 31endif() 32