]>
Commit | Line | Data |
---|---|---|
1e59de90 | 1 | # Copyright 2021 Peter Dimov |
92f5a8d4 | 2 | # Distributed under the Boost Software License, Version 1.0. |
1e59de90 | 3 | # https://www.boost.org/LICENSE_1_0.txt |
92f5a8d4 | 4 | |
1e59de90 | 5 | include(BoostTest OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST) |
92f5a8d4 | 6 | |
1e59de90 TL |
7 | if(NOT HAVE_BOOST_TEST) |
8 | return() | |
9 | endif() | |
92f5a8d4 | 10 | |
1e59de90 | 11 | set(BOOST_TEST_LINK_LIBRARIES Boost::rational) |
92f5a8d4 | 12 | |
1e59de90 TL |
13 | boost_test(TYPE run SOURCES rational_example.cpp) |
14 | boost_test(TYPE run SOURCES rational_test.cpp LINK_LIBRARIES Boost::unit_test_framework) | |
15 | boost_test(TYPE run SOURCES constexpr_test.cpp COMPILE_FEATURES cxx_constexpr) | |
16 | ||
17 | boost_test(TYPE compile-fail SOURCES expected_fail_01.cpp) | |
18 | boost_test(TYPE compile-fail SOURCES expected_fail_02.cpp) | |
19 | boost_test(TYPE compile-fail SOURCES expected_fail_03.cpp) | |
20 | boost_test(TYPE compile-fail SOURCES expected_fail_04.cpp) | |
21 | boost_test(TYPE compile-fail SOURCES expected_fail_05.cpp) | |
22 | boost_test(TYPE compile-fail SOURCES expected_fail_06.cpp) | |
23 | boost_test(TYPE compile-fail SOURCES expected_fail_07.cpp) | |
24 | boost_test(TYPE compile-fail SOURCES expected_fail_08.cpp) | |
25 | boost_test(TYPE compile-fail SOURCES expected_fail_09.cpp) | |
26 | boost_test(TYPE compile-fail SOURCES expected_fail_10.cpp) | |
27 | boost_test(TYPE compile-fail SOURCES expected_fail_11.cpp) | |
28 | ||
29 | boost_test(TYPE compile SOURCES expected_compile_12.cpp) |