From fa309046184ce59395a6c3036fa3256d0cd6dde2 Mon Sep 17 00:00:00 2001 From: "Troy D. Straszheim" Date: Sat, 24 Jan 2009 18:57:20 +0000 Subject: [PATCH] merge of cmake build files from trunk per beman [SVN r50756] --- CMakeLists.txt | 23 +++++++++++++++++++++++ module.cmake | 1 + test/CMakeLists.txt | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 module.cmake create mode 100644 test/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..42bc52e --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,23 @@ +#---------------------------------------------------------------------------- +# This file was automatically generated from the original CMakeLists.txt file +# Add a variable to hold the headers for the library +set (lib_headers + exception.hpp + exception_ptr.hpp + exception +) + +# Add a library target to the build system +boost_library_project( + exception + # SRCDIRS + TESTDIRS test + HEADERS ${lib_headers} + DOCDIRS doc + DESCRIPTION "A library for transporting of arbitrary data in exception objects, and transporting of exceptions between threads." + MODULARIZED + AUTHORS "Emil Dotchevski " + # MAINTAINERS +) + + diff --git a/module.cmake b/module.cmake new file mode 100644 index 0000000..89d0eef --- /dev/null +++ b/module.cmake @@ -0,0 +1 @@ +boost_module(exception DEPENDS smart_ptr detail utility tuple) \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..62ab02f --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,41 @@ +boost_additional_test_dependencies(exception BOOST_DEPENDS test) + +boost_test_run(is_output_streamable_test) +boost_test_run(has_to_string_test) +boost_test_run(to_string_test) +boost_test_run(to_string_stub_test) +boost_test_compile_fail(to_string_fail) + +#exception + +boost_test_run(cloning_test) +boost_test_run(copy_exception_test) +boost_test_run(unknown_exception_test) +boost_test_run(exception_test) +#boost_test_run(boost_error_info_test) +boost_test_run(enable_error_info_test enable_error_info_test.cpp helper1.cpp) +boost_test_run(throw_exception_test throw_exception_test.cpp helper2.cpp) +boost_test_run(errno_test) +boost_test_run(error_info_test) +boost_test_run(diagnostic_information_test) +boost_test_compile_fail(exception_fail) +boost_test_compile_fail(throw_exception_fail) + +# 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}) +