From cec8e8065867a5a645f3c70b120bcd38dc0a923d Mon Sep 17 00:00:00 2001 From: "Michael A. Jackson" Date: Sat, 1 Nov 2008 13:15:41 +0000 Subject: [PATCH] Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor [SVN r49510] --- doc/CMakeLists.txt | 2 ++ examples/CMakeLists.txt | 9 ++++++++ test/CMakeLists.txt | 51 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 doc/CMakeLists.txt create mode 100644 examples/CMakeLists.txt create mode 100644 test/CMakeLists.txt diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..cd83029 --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,2 @@ +message(STATUS "functional/hash docs need love") + diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000..21ab206 --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,9 @@ +#------------------------------------------------------------------------- +#-- Needed include directories for the tests +boost_test_add_dependent_includes("utility;detail;config") +#------------------------------------------------------------------------- +boost_test_run(books) +boost_test_run(point) +boost_test_run(portable) + + diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..70faa4a --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,51 @@ +#project hash-tests +# : requirements +# gcc:_GLIBCXX_DEBUG +# ; +if (GCC) + ADD_DEFINITIONS(-D_GLIBCXX_DEBUG) +endif(GCC) + +# [ run .cpp : : : always_show_run_output ] + + + +#------------------------------------------------------------------------- +#-- Needed include directories for the tests +boost_test_add_dependent_includes("utility;detail;config;preprocessor;type_traits;mpl;static_assert") +#------------------------------------------------------------------------- + +SET(tests +hash_float_test +hash_fwd_test_1 +hash_fwd_test_2 +hash_number_test +hash_pointer_test +hash_function_pointer_test +hash_string_test +hash_range_test +hash_custom_test +hash_global_namespace_test +hash_friend_test +hash_built_in_array_test +hash_value_array_test +hash_vector_test +hash_list_test +hash_deque_test +hash_set_test +hash_map_test +container_fwd_test +hash_no_ext_macro_1 +hash_no_ext_macro_2 +) + +boost_test_run(link_test link_test.cpp link_test_2.cpp) +boost_test_run(link_ext_test link_ext_test.cpp link_no_ext_test.cpp) + +foreach(test ${tests}) + boost_test_run(${test}) +endforeach(test ${tests}) + +boost_test_compile_fail(hash_no_ext_fail_test) + +# build-project ../examples ;