• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 Mike Dev
2# Distributed under the Boost Software License, Version 1.0.
3# See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
4#
5# NOTE: CMake support for Boost.Exception is currently experimental at best
6#       and the interface is likely to change in the future
7
8cmake_minimum_required( VERSION 3.5 )
9project( BoostException LANGUAGES CXX )
10
11# We treat Boost.Exception as header only for now.
12# See https://github.com/boostorg/exception/pull/17
13# for more information.
14
15add_library( boost_exception INTERFACE )
16add_library( Boost::exception ALIAS boost_exception )
17
18target_include_directories( boost_exception INTERFACE include )
19
20target_link_libraries( boost_exception
21    INTERFACE
22        Boost::assert
23        Boost::config
24        Boost::core
25        Boost::smart_ptr
26        Boost::throw_exception
27        Boost::tuple
28        Boost::type_traits
29)
30
31