CMakeLists.txt 927 B

12345678910111213141516171819202122232425
  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. # NOTE: Boost::test not yet available, so we can't run the regular test
  8. # add_executable( test_boost_rational_test rational_test.cpp )
  9. # target_link_libraries( test_boost_rational_test
  10. # PUBLIC
  11. # Boost::rational
  12. # Boost::mpl
  13. # Boost::test
  14. # )
  15. # add_test( NAME test_boost_rational_test COMMAND test_boost_rational_test )
  16. add_executable( test_boost_rational_constexpr_test constexpr_test.cpp )
  17. target_link_libraries( test_boost_rational_constexpr_test
  18. PUBLIC
  19. Boost::rational
  20. )
  21. add_test( NAME test_boost_rational_constexpr_test COMMAND test_boost_rational_constexpr_test )