]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/container/CMakeLists.txt
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / container / 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_container VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES C CXX)
8
9 add_library(boost_container
10 src/alloc_lib.c
11 src/dlmalloc.cpp
12 src/global_resource.cpp
13 src/monotonic_buffer_resource.cpp
14 src/pool_resource.cpp
15 src/synchronized_pool_resource.cpp
16 src/unsynchronized_pool_resource.cpp
17 )
18
19 add_library(Boost::container ALIAS boost_container)
20
21 target_include_directories(boost_container PUBLIC include)
22
23 target_link_libraries(boost_container
24 PUBLIC
25 Boost::assert
26 Boost::config
27 Boost::core
28 Boost::intrusive
29 Boost::move
30 Boost::static_assert
31 Boost::type_traits
32 Boost::winapi
33 )
34
35 target_compile_definitions(boost_container
36 PUBLIC BOOST_CONTAINER_NO_LIB
37 # Source files already define BOOST_CONTAINER_SOURCE
38 # PRIVATE BOOST_CONTAINER_SOURCE
39 )
40
41 if(BUILD_SHARED_LIBS)
42 target_compile_definitions(boost_container PUBLIC BOOST_CONTAINER_DYN_LINK)
43 else()
44 target_compile_definitions(boost_container PUBLIC BOOST_CONTAINER_STATIC_LINK)
45 endif()
46
47 if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
48
49 add_subdirectory(test)
50
51 endif()