]>
Commit | Line | Data |
---|---|---|
1e59de90 | 1 | # Copyright 2020, 2021 Peter Dimov |
92f5a8d4 | 2 | # Distributed under the Boost Software License, Version 1.0. |
1e59de90 TL |
3 | # https://www.boost.org/LICENSE_1_0.txt |
4 | ||
5 | cmake_minimum_required(VERSION 3.5...3.20) | |
6 | ||
7 | project(boost_exception VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) | |
8 | ||
9 | add_library(boost_exception STATIC | |
10 | src/clone_current_exception_non_intrusive.cpp | |
92f5a8d4 TL |
11 | ) |
12 | ||
1e59de90 TL |
13 | add_library(Boost::exception ALIAS boost_exception) |
14 | ||
15 | target_include_directories(boost_exception PUBLIC include) | |
16 | ||
17 | target_link_libraries(boost_exception | |
18 | PUBLIC | |
19 | Boost::assert | |
20 | Boost::config | |
21 | Boost::core | |
22 | Boost::smart_ptr | |
23 | Boost::throw_exception | |
24 | Boost::tuple | |
25 | Boost::type_traits | |
26 | ) | |
27 | ||
28 | if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") | |
29 | ||
30 | add_subdirectory(test) | |
31 | ||
32 | endif() |