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 8cmake_minimum_required( VERSION 3.5 ) 9project( BoostRational LANGUAGES CXX) 10option( BOOST_RATIONAL_INCLUDE_TESTS "Add boost rational tests" OFF ) 11 12add_library( boost_rational INTERFACE ) 13add_library( Boost::rational ALIAS boost_rational ) 14 15target_include_directories( boost_rational INTERFACE include ) 16 17target_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 29if( BOOST_RATIONAL_INCLUDE_TESTS ) 30 enable_testing() 31 add_subdirectory( test ) 32endif() 33 34