1# Copyright 2018 Mike Dev 2# Copyright 2019 Peter Dimov 3# Distributed under the Boost Software License, Version 1.0. 4# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt 5# 6# CAUTION!!!! 7# 8# This addition to Boost.Config should be considered experimental and is part 9# of an ongoing effort to add CMake support Boost-wide. 10# 11# IT IS HIGHLY LIKELY THAT THIS FILE WILL CHANGE WITHOUT NOTICE!!! 12# 13# DO NOT RELY ON THE CONTENTS OF THIS FILE!!! 14# 15 16# We support CMake 3.5, but prefer 3.16 policies and behavior 17cmake_minimum_required(VERSION 3.5...3.16) 18 19project(boost_config VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) 20 21add_library(boost_config INTERFACE) 22add_library(Boost::config ALIAS boost_config) 23 24target_include_directories(boost_config INTERFACE include) 25 26# boost_install requires PROJECT_VERSION 27# Without the superproject, we don't have any, so skip installation 28 29if(BOOST_SUPERPROJECT_VERSION) 30 31 include(BoostInstall) 32 boost_install(TARGETS boost_config HEADER_DIRECTORY include/) 33 34endif() 35