From 5d92a68e687b7872b15af3e72fd4b5a8863e465a Mon Sep 17 00:00:00 2001 From: "Michael A. Jackson" Date: Fri, 7 Nov 2008 17:02:56 +0000 Subject: [PATCH] Updating CMake files to latest trunk. Added dependency information for regression tests and a few new macros for internal use. [SVN r49627] --- test/CMakeLists.txt | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index f533a70..62ab02f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,3 +1,4 @@ +boost_additional_test_dependencies(exception BOOST_DEPENDS test) boost_test_run(is_output_streamable_test) boost_test_run(has_to_string_test) @@ -20,15 +21,21 @@ boost_test_run(diagnostic_information_test) boost_test_compile_fail(exception_fail) boost_test_compile_fail(throw_exception_fail) -#headers +# Compile headers tests +set (compile_tests + diagnostic_information_hpp_test + error_info_hpp_test + exception_ptr_hpp_test + exception_hpp_test + get_error_info_hpp_test + info_hpp_test + info_tuple_hpp_test + to_string_hpp_test + to_string_stub_hpp_test + ) + +#-- Create a Compile test for each source +foreach(test ${compile_tests}) + boost_test_compile(${test} "${test}.cpp") +endforeach(test ${compile_tests}) -boost_test_compile(exception_ptr_hpp_test) -boost_test_compile(diagnostic_information_hpp_test) -boost_test_compile(enable_current_exception_hpp_test) -boost_test_compile(enable_error_info_hpp_test) -boost_test_compile(error_info_hpp_test) -boost_test_compile(exception_hpp_test) -boost_test_compile(info_hpp_test) -boost_test_compile(info_tuple_hpp_test) -boost_test_compile(to_string_hpp_test) -boost_test_compile(to_string_stub_hpp_test)