]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | # Generated by `boostdep --cmake outcome` |
2 | # Copyright 2020 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 TL |
6 | cmake_minimum_required(VERSION 3.5...3.16) |
7 | ||
8 | project(boost_outcome VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) | |
92f5a8d4 TL |
9 | |
10 | add_library(boost_outcome INTERFACE) | |
11 | add_library(Boost::outcome ALIAS boost_outcome) | |
12 | ||
13 | target_include_directories(boost_outcome INTERFACE include) | |
14 | ||
1e59de90 TL |
15 | target_link_libraries(boost_outcome |
16 | INTERFACE | |
17 | Boost::config | |
18 | Boost::exception | |
19 | Boost::system | |
20 | Boost::throw_exception | |
21 | ) | |
22 | ||
23 | target_compile_features(boost_outcome | |
24 | INTERFACE | |
25 | cxx_std_14 | |
92f5a8d4 | 26 | ) |
1e59de90 TL |
27 | |
28 | if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") | |
29 | ||
30 | add_subdirectory(test) | |
31 | ||
32 | endif() |