]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_erasure/CMakeLists.txt
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / type_erasure / 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_type_erasure VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
8
9 add_library(boost_type_erasure
10 src/dynamic_binding.cpp
11 )
12
13 add_library(Boost::type_erasure ALIAS boost_type_erasure)
14
15 target_include_directories(boost_type_erasure PUBLIC include)
16
17 target_link_libraries(boost_type_erasure
18 PUBLIC
19 Boost::assert
20 Boost::config
21 Boost::core
22 Boost::fusion
23 Boost::iterator
24 Boost::mp11
25 Boost::mpl
26 Boost::preprocessor
27 Boost::smart_ptr
28 Boost::throw_exception
29 Boost::type_traits
30 Boost::typeof
31 Boost::vmd
32 PRIVATE
33 Boost::thread
34 )
35
36 target_compile_definitions(boost_type_erasure
37 PUBLIC BOOST_TYPE_ERASURE_NO_LIB
38 # Source files already define BOOST_TYPE_ERASURE_SOURCE
39 # PRIVATE BOOST_TYPE_ERASURE_SOURCE
40 )
41
42 if(BUILD_SHARED_LIBS)
43 target_compile_definitions(boost_type_erasure PUBLIC BOOST_TYPE_ERASURE_DYN_LINK)
44 else()
45 target_compile_definitions(boost_type_erasure PUBLIC BOOST_TYPE_ERASURE_STATIC_LINK)
46 endif()
47
48 if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
49
50 add_subdirectory(test)
51
52 endif()
53