diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..bcd5130 --- /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 + functional.hpp + functional +) + +# Add a library target to the build system +boost_library_project( + functional + # SRCDIRS + TESTDIRS test hash/test hash/examples + HEADERS ${lib_headers} + DOCDIRS hash/doc + # DESCRIPTION + MODULARIZED + # AUTHORS + # MAINTAINERS +) + + diff --git a/hash/doc/CMakeLists.txt b/hash/doc/CMakeLists.txt new file mode 100644 index 0000000..cd83029 --- /dev/null +++ b/hash/doc/CMakeLists.txt @@ -0,0 +1,2 @@ +message(STATUS "functional/hash docs need love") + diff --git a/hash/examples/CMakeLists.txt b/hash/examples/CMakeLists.txt new file mode 100644 index 0000000..9a5efc8 --- /dev/null +++ b/hash/examples/CMakeLists.txt @@ -0,0 +1,9 @@ +#------------------------------------------------------------------------- +#-- Needed include directories for the tests +boost_additional_test_dependencies(config BOOST_DEPENDS test) +#------------------------------------------------------------------------- +boost_test_run(books) +boost_test_run(point) +boost_test_run(portable) + + diff --git a/hash/test/CMakeLists.txt b/hash/test/CMakeLists.txt new file mode 100644 index 0000000..a4e132b --- /dev/null +++ b/hash/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_additional_test_dependencies(functional BOOST_DEPENDS test) +#------------------------------------------------------------------------- + +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 ; diff --git a/module.cmake b/module.cmake new file mode 100644 index 0000000..f10d82e --- /dev/null +++ b/module.cmake @@ -0,0 +1 @@ +boost_module(functional DEPENDS integer) \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..79691c3 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1 @@ +boost_test_run(function_test function_test.cpp)