]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/rational/CMakeLists.txt
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / rational / CMakeLists.txt
1 # Copyright 2019 Mike Dev
2 # Distributed under the Boost Software License, Version 1.0.
3 # See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
4 #
5 # NOTE: CMake support for Boost.Rational is currently experimental at best
6 # and the interface is likely to change in the future
7
8 cmake_minimum_required( VERSION 3.5 )
9 project( BoostRational LANGUAGES CXX)
10 option( BOOST_RATIONAL_INCLUDE_TESTS "Add boost rational tests" OFF )
11
12 add_library( boost_rational INTERFACE )
13 add_library( Boost::rational ALIAS boost_rational )
14
15 target_include_directories( boost_rational INTERFACE include )
16
17 target_link_libraries( boost_rational
18 INTERFACE
19 Boost::assert
20 Boost::config
21 Boost::core
22 Boost::integer
23 Boost::static_assert
24 Boost::throw_exception
25 Boost::type_traits
26 Boost::utility
27 )
28
29 if( BOOST_RATIONAL_INCLUDE_TESTS )
30 enable_testing()
31 add_subdirectory( test )
32 endif()
33