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# We support CMake 3.5, but prefer 3.16 policies and behavior 7cmake_minimum_required(VERSION 3.5...3.16) 8 9project(boost_static_assert VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) 10 11add_library(boost_static_assert INTERFACE) 12add_library(Boost::static_assert ALIAS boost_static_assert) 13 14target_include_directories(boost_static_assert INTERFACE include) 15 16target_link_libraries(boost_static_assert 17 INTERFACE 18 Boost::config 19) 20 21# boost_install requires PROJECT_VERSION 22# Without the superproject, we don't have any, so skip installation 23 24if(BOOST_SUPERPROJECT_VERSION) 25 26 include(BoostInstall) 27 boost_install(TARGETS boost_static_assert HEADER_DIRECTORY include/) 28 29endif() 30