]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | # Generated by `boostdep --cmake core` |
2 | # Copyright 2020, 2021 Peter Dimov | |
92f5a8d4 | 3 | # Distributed under the Boost Software License, Version 1.0. |
1e59de90 | 4 | # https://www.boost.org/LICENSE_1_0.txt |
92f5a8d4 | 5 | |
1e59de90 | 6 | cmake_minimum_required(VERSION 3.5...3.20) |
92f5a8d4 | 7 | |
f67539c2 | 8 | project(boost_core VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) |
92f5a8d4 TL |
9 | |
10 | add_library(boost_core INTERFACE) | |
11 | add_library(Boost::core ALIAS boost_core) | |
12 | ||
13 | target_include_directories(boost_core INTERFACE include) | |
14 | ||
15 | target_link_libraries(boost_core | |
f67539c2 TL |
16 | INTERFACE |
17 | Boost::assert | |
18 | Boost::config | |
1e59de90 TL |
19 | Boost::static_assert |
20 | Boost::throw_exception | |
92f5a8d4 | 21 | ) |
f67539c2 | 22 | |
1e59de90 | 23 | if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") |
f67539c2 TL |
24 | |
25 | add_subdirectory(test) | |
26 | ||
27 | endif() |