diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..6df7714 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,31 @@ +#---------------------------------------------------------------------------- +# This file was automatically generated from the original CMakeLists.txt file +# Add a variable to hold the headers for the library +set (lib_headers + assert.hpp + call_traits.hpp + checked_delete.hpp + compressed_pair.hpp + current_function.hpp + operators.hpp + throw_exception.hpp + utility.hpp + utility +) + +# Add a library target to the build system +boost_library_project( + utility + # SRCDIRS + TESTDIRS test + HEADERS ${lib_headers} + # DOCDIRS + DESCRIPTION "Various small utilities for C++ programming." + MODULARIZED + AUTHORS "David Abrahams " + "Brad King" + "Douglas Gregor " + # MAINTAINERS +) + + diff --git a/module.cmake b/module.cmake new file mode 100644 index 0000000..4d78340 --- /dev/null +++ b/module.cmake @@ -0,0 +1 @@ +boost_module(utility DEPENDS iterator exception detail ) \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..bd81db0 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,36 @@ +boost_test_run(addressof_test ../addressof_test.cpp) +boost_test_run(assert_test ../assert_test.cpp) +boost_test_run(base_from_member_test ../base_from_member_test.cpp) +boost_test_run(binary_search_test ../binary_search_test.cpp) +boost_test_run(call_traits_test ../call_traits_test.cpp ARGS -u) +boost_test_compile_fail(checked_delete_test ../checked_delete_test.cpp) +boost_test_run(compressed_pair_test + ../compressed_pair_test + DEPENDS boost_test_exec_monitor) +boost_test_run(current_function_test ../current_function_test.cpp) +boost_test_run(iterators_test + ../iterators_test.cpp + DEPENDS boost_test_exec_monitor) +boost_test_run(next_prior_test DEPENDS boost_test_exec_monitor) +boost_test_compile_fail(noncopyable_test ../noncopyable_test.cpp) +boost_test_run(numeric_traits_test ../numeric_traits_test.cpp) +if (${CMAKE_SYSTEM} MATCHES "FreeBSD-.*") +boost_test_compile_fail("operators_test_compilerbug") +elseif(${CMAKE_SYSTEM} MATCHES "FreeBSD-.*") +boost_test_run(operators_test + ../operators_test.cpp + DEPENDS boost_test_exec_monitor) +endif(${CMAKE_SYSTEM} MATCHES "FreeBSD-.*") +boost_test_compile(ref_ct_test ../ref_ct_test.cpp) +boost_test_run(ref_test + ../ref_test.cpp + DEPENDS boost_test_exec_monitor) +boost_test_compile(result_of_test) +boost_test_run(shared_iterator_test ../shared_iterator_test.cpp) +boost_test_run(value_init_test ../value_init_test.cpp) +boost_test_compile_fail(value_init_test_fail1 + ../value_init_test_fail1.cpp) +boost_test_compile_fail(value_init_test_fail2 + ../value_init_test_fail2.cpp) +boost_test_compile_fail(value_init_test_fail3 + ../value_init_test_fail3.cpp)