]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/random/CMakeLists.txt
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / random / 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_random VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
8
9 add_library(boost_random
10 src/random_device.cpp
11 )
12
13 add_library(Boost::random ALIAS boost_random)
14
15 target_include_directories(boost_random PUBLIC include)
16
17 target_link_libraries(boost_random
18 PUBLIC
19 Boost::array
20 Boost::assert
21 Boost::config
22 Boost::core
23 Boost::dynamic_bitset
24 Boost::integer
25 Boost::io
26 Boost::range
27 Boost::static_assert
28 Boost::system
29 Boost::throw_exception
30 Boost::type_traits
31 Boost::utility
32 )
33
34 target_compile_definitions(boost_random
35 PUBLIC BOOST_RANDOM_NO_LIB
36 # Source files already define BOOST_RANDOM_SOURCE
37 # PRIVATE BOOST_RANDOM_SOURCE
38 )
39
40 if(BUILD_SHARED_LIBS)
41 target_compile_definitions(boost_random PUBLIC BOOST_RANDOM_DYN_LINK)
42 else()
43 target_compile_definitions(boost_random PUBLIC BOOST_RANDOM_STATIC_LINK)
44 endif()
45
46 if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
47
48 add_subdirectory(test)
49
50 endif()
51