]>
Commit | Line | Data |
---|---|---|
f67539c2 | 1 | # Copyright 2018-2020 Peter Dimov |
92f5a8d4 TL |
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 | ||
f67539c2 | 5 | cmake_minimum_required(VERSION 3.5...3.16) |
92f5a8d4 | 6 | |
f67539c2 | 7 | project(boost_smart_ptr VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) |
92f5a8d4 TL |
8 | |
9 | add_library(boost_smart_ptr INTERFACE) | |
10 | add_library(Boost::smart_ptr ALIAS boost_smart_ptr) | |
11 | ||
12 | target_include_directories(boost_smart_ptr INTERFACE include) | |
13 | ||
14 | target_link_libraries(boost_smart_ptr | |
f67539c2 TL |
15 | INTERFACE |
16 | Boost::assert | |
17 | Boost::config | |
18 | Boost::core | |
19 | Boost::move | |
20 | Boost::static_assert | |
21 | Boost::throw_exception | |
22 | Boost::type_traits | |
92f5a8d4 | 23 | ) |
f67539c2 TL |
24 | |
25 | if(BOOST_SUPERPROJECT_VERSION) | |
26 | ||
27 | include(BoostInstall) | |
28 | boost_install(TARGETS boost_smart_ptr HEADER_DIRECTORY include/) | |
29 | ||
30 | endif() | |
31 | ||
32 | if(BUILD_TESTING) | |
33 | ||
34 | add_subdirectory(test) | |
35 | ||
36 | endif() |