1# Copyright Mike Dev 2018 2# Copyright Rene Rivera 2018 3# Distributed under the Boost Software License, Version 1.0. 4# See accompanying file LICENSE_1_0.txt or copy at 5# http://www.boost.org/LICENSE_1_0.txt 6 7# NOTE: 8# CMake support for Boost.Predef is currently experimental at best and the 9# interface is likely to change in the future 10# 11# This file provides minimal cmake support (no unit-tests, 12# no installation) for integration into a "host" cmake project 13# via the "add_subdirectory( <path-to-boost-predef> )" command. 14# 15# Other cmake targets can then use the public target name 16# "Boost::predef" in order to express their dependency 17# on this library. I.e: 18# 19# target_link_libraries( <my-exe/lib> PUBLIC Boost::predef ) 20 21# Only need the basic minimum of project, add_library, and 22# target_include_directories commands. 23cmake_minimum_required( VERSION 3.0 ) 24 25# Don't set VERSION, as that's a pita to keep up to date with the version 26# header. And don't set LANGUAGES as we are multi-language and header 27# only, so it's irrelevant. 28project( BoostPredef ) 29 30# Simple INTERFACE, and header only, library target. 31add_library( boost_predef INTERFACE ) 32 33# The only usage requirement is include dir for consumers. 34target_include_directories( boost_predef INTERFACE include ) 35 36# Add an alias to be compatible with consumers that may have used the 37# FindBoost script. 38add_library( Boost::predef ALIAS boost_predef ) 39