From b80e723dcc6247cb33d882ed7ff382e490bf407f 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 | 21 +++++++++++++++++++++ module.cmake | 1 + test/CMakeLists.txt | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 56 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..fe972b4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,21 @@ +#---------------------------------------------------------------------------- +# This file was automatically generated from the original CMakeLists.txt file +# Add a variable to hold the headers for the library +set (lib_headers + foreach.hpp +) + +# Add a library target to the build system +boost_library_project( + foreach + # SRCDIRS + TESTDIRS test + HEADERS ${lib_headers} + # DOCDIRS + # DESCRIPTION + MODULARIZED + # AUTHORS + # MAINTAINERS +) + + diff --git a/module.cmake b/module.cmake new file mode 100644 index 0000000..7501f4d --- /dev/null +++ b/module.cmake @@ -0,0 +1 @@ +boost_module(foreach DEPENDS range) \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..a939624 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,34 @@ +boost_additional_test_dependencies(foreach BOOST_DEPENDS test ) + +set(TESTS +stl_byval +stl_byval_r +stl_byref +stl_byref_r +array_byval +array_byval_r +array_byref +array_byref_r +cstr_byval +cstr_byval_r +cstr_byref +cstr_byref_r +pair_byval +pair_byval_r +pair_byref +pair_byref_r +user_defined +call_once +rvalue_const +rvalue_const_r +rvalue_nonconst +rvalue_nonconst_r +dependent_type +misc) + +foreach(test ${TESTS}) + boost_test_run(${test}) +endforeach(test ${TESTS}) + +boost_test_compile(noncopyable) +