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) +