]>
Commit | Line | Data |
---|---|---|
1e59de90 | 1 | # Copyright 2018-2021 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 | ||
f51cf556 | 5 | cmake_minimum_required(VERSION 3.5...3.20) |
92f5a8d4 | 6 | |
f67539c2 | 7 | project(boost_system VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) |
92f5a8d4 TL |
8 | |
9 | add_library(boost_system INTERFACE) | |
10 | add_library(Boost::system ALIAS boost_system) | |
11 | ||
12 | target_include_directories(boost_system INTERFACE include) | |
13 | ||
14 | target_link_libraries(boost_system | |
f67539c2 | 15 | INTERFACE |
1e59de90 | 16 | Boost::assert |
f67539c2 | 17 | Boost::config |
1e59de90 TL |
18 | Boost::throw_exception |
19 | Boost::variant2 | |
f67539c2 | 20 | Boost::winapi |
92f5a8d4 | 21 | ) |
f67539c2 | 22 | |
f51cf556 TL |
23 | if(CMAKE_VERSION VERSION_GREATER 3.18 AND CMAKE_GENERATOR MATCHES "Visual Studio") |
24 | ||
25 | file(GLOB_RECURSE boost_system_IDEFILES CONFIGURE_DEPENDS include/*.hpp) | |
26 | source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_system_IDEFILES} PREFIX "Header Files") | |
27 | list(APPEND boost_system_IDEFILES extra/boost_system.natvis) | |
28 | target_sources(boost_system PRIVATE ${boost_system_IDEFILES}) | |
29 | ||
30 | endif() | |
31 | ||
f67539c2 TL |
32 | if(BUILD_TESTING) |
33 | ||
34 | add_subdirectory(test) | |
35 | ||
36 | endif() |