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
5 # NOTE: CMake support for Boost.Rational is currently experimental at best
6 # and the interface is likely to change in the future
8 cmake_minimum_required( VERSION 3.5 )
9 project( BoostRational LANGUAGES CXX)
10 option( BOOST_RATIONAL_INCLUDE_TESTS "Add boost rational tests" OFF )
12 add_library( boost_rational INTERFACE )
13 add_library( Boost::rational ALIAS boost_rational )
15 target_include_directories( boost_rational INTERFACE include )
17 target_link_libraries( boost_rational
24 Boost::throw_exception
29 if( BOOST_RATIONAL_INCLUDE_TESTS )
31 add_subdirectory( test )