1# Copyright 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_preprocessor VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) 8 9add_library(boost_preprocessor INTERFACE) 10add_library(Boost::preprocessor ALIAS boost_preprocessor) 11 12target_include_directories(boost_preprocessor INTERFACE include) 13 14if(BOOST_SUPERPROJECT_VERSION) 15 16 include(BoostInstall) 17 boost_install(TARGETS boost_preprocessor HEADER_DIRECTORY include/) 18 19endif() 20 21if(BUILD_TESTING) 22 23 add_subdirectory(test) 24 25endif() 26