]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/graph/CMakeLists.txt
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / graph / CMakeLists.txt
1 # Copyright 2020, 2021 Peter Dimov
2 # Distributed under the Boost Software License, Version 1.0.
3 # https://www.boost.org/LICENSE_1_0.txt
4
5 cmake_minimum_required(VERSION 3.5...3.16)
6
7 project(boost_graph VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
8
9 add_library(boost_graph
10 src/graphml.cpp
11 src/read_graphviz_new.cpp
12 )
13
14 add_library(Boost::graph ALIAS boost_graph)
15
16 target_include_directories(boost_graph PUBLIC include)
17
18 target_link_libraries(boost_graph
19 PUBLIC
20 Boost::algorithm
21 Boost::any
22 Boost::array
23 Boost::assert
24 Boost::bimap
25 Boost::bind
26 Boost::concept_check
27 Boost::config
28 Boost::container_hash
29 Boost::conversion
30 Boost::core
31 Boost::detail
32 Boost::foreach
33 Boost::function
34 Boost::integer
35 Boost::iterator
36 Boost::lexical_cast
37 Boost::math
38 Boost::move
39 Boost::mpl
40 Boost::multi_index
41 Boost::optional
42 Boost::parameter
43 Boost::preprocessor
44 Boost::property_map
45 Boost::property_tree
46 Boost::random
47 Boost::range
48 Boost::serialization
49 Boost::smart_ptr
50 Boost::spirit
51 Boost::static_assert
52 Boost::throw_exception
53 Boost::tti
54 Boost::tuple
55 Boost::type_traits
56 Boost::typeof
57 Boost::unordered
58 Boost::utility
59 Boost::xpressive
60 PRIVATE
61 Boost::regex
62 )
63
64 target_compile_definitions(boost_graph
65 PUBLIC BOOST_GRAPH_NO_LIB
66 # Source files already define BOOST_GRAPH_SOURCE
67 # PRIVATE BOOST_GRAPH_SOURCE
68 )
69
70 if(BUILD_SHARED_LIBS)
71 target_compile_definitions(boost_graph PUBLIC BOOST_GRAPH_DYN_LINK)
72 else()
73 target_compile_definitions(boost_graph PUBLIC BOOST_GRAPH_STATIC_LINK)
74 endif()
75
76 if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
77
78 add_subdirectory(test)
79
80 endif()