From 2fd383cd2e38533264a771ede4348a11a4441616 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 | 22 ++++++++++++++++++++++ doc/CMakeLists.txt | 2 ++ module.cmake | 1 + test/CMakeLists.txt | 23 +++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 doc/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..09cdec5 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,22 @@ +#---------------------------------------------------------------------------- +# This file was automatically generated from the original CMakeLists.txt file +# Add a variable to hold the headers for the library +set (lib_headers + function.hpp + function +) + +# Add a library target to the build system +boost_library_project( + function + # SRCDIRS + TESTDIRS test + HEADERS ${lib_headers} + DOCDIRS doc + # DESCRIPTION + MODULARIZED + # AUTHORS + # MAINTAINERS +) + + diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..f8483bf --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,2 @@ +boost_add_documentation(function.xml + faq.xml history.xml misc.xml reference.xml tests.xml tutorial.xml) diff --git a/module.cmake b/module.cmake new file mode 100644 index 0000000..052e0cf --- /dev/null +++ b/module.cmake @@ -0,0 +1 @@ +boost_module(function DEPENDS detail preprocessor utility) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..2230181 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,23 @@ +boost_additional_test_dependencies(function BOOST_DEPENDS test lambda) + + +boost_test_run(lib_function_test function_test.cpp) +boost_test_run(function_n_test) +boost_test_run(allocator_test) +boost_test_run(stateless_test) +boost_test_run(lambda_test) +boost_test_compile_fail(function_test_fail1) +boost_test_compile_fail(function_test_fail2) +boost_test_compile(function_30) +boost_test_run(function_arith_cxx98) +boost_test_run(function_arith_portable) +boost_test_run(sum_avg_cxx98) +boost_test_run(sum_avg_portable) +boost_test_run(mem_fun_cxx98) +boost_test_run(mem_fun_portable) +boost_test_run(std_bind_cxx98) +boost_test_run(std_bind_portable) +boost_test_run(function_ref_cxx98) +boost_test_run(function_ref_portable) +boost_test_run(contains_test) +boost_test_run(contains2_test)