]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/endian/CMakeLists.txt
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / endian / CMakeLists.txt
CommitLineData
92f5a8d4
TL
1# Copyright 2019 Peter Dimov
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
f67539c2 5cmake_minimum_required(VERSION 3.5...3.16)
92f5a8d4 6
f67539c2 7project(boost_endian VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
92f5a8d4
TL
8
9add_library(boost_endian INTERFACE)
10add_library(Boost::endian ALIAS boost_endian)
11
12target_include_directories(boost_endian INTERFACE include)
13
14target_link_libraries(boost_endian
f67539c2
TL
15 INTERFACE
16 Boost::config
17 Boost::core
18 Boost::static_assert
19 Boost::type_traits
92f5a8d4 20)
f67539c2
TL
21
22if(BOOST_SUPERPROJECT_VERSION)
23
24 include(BoostInstall)
25 boost_install(TARGETS boost_endian HEADER_DIRECTORY include/)
26
27endif()
28
29if(BUILD_TESTING)
30
31 add_subdirectory(test)
32
33endif()