From a65512ed5c5a6f2f2ea7f78a23d8382deae2ff87 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] --- CMakeLists.txt | 22 ++++++++++++++++++++++ doc/CMakeLists.txt | 1 + module.cmake | 1 + test/CMakeLists.txt | 17 +++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 doc/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..f0c2263 --- /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 + range.hpp + range +) + +# Add a library target to the build system +boost_library_project( + range + # SRCDIRS + TESTDIRS test + HEADERS ${lib_headers} + DOCDIRS doc + DESCRIPTION "A new infrastructure for generic algorithms that builds on top of the new iterator concepts." + MODULARIZED + AUTHORS "Thorsten Ottosen " + # MAINTAINERS +) + + diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..3aea8c0 --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1 @@ +boost_add_documentation(boost_range.qbk) \ No newline at end of file diff --git a/module.cmake b/module.cmake new file mode 100644 index 0000000..49c9bc9 --- /dev/null +++ b/module.cmake @@ -0,0 +1 @@ +boost_module(range DEPENDS algorithm) \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..a076f07 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,17 @@ +message(STATUS "libs/range/test: need -Wall -Wunused here when under gcc") +set( test_compile_flags "") +IF(CMAKE_COMPILER_IS_GNUCC) + SET(test_compile_flags "-Wall -Wunused") +ENDIF(CMAKE_COMPILER_IS_GNUCC) + +boost_test_run(array DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags}) +boost_test_run(iterator_pair DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags}) +boost_test_run(std_container DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags}) +boost_test_run(string DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags}) +boost_test_run(iterator_range DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags}) +boost_test_run(sub_range DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags}) +boost_test_run(partial_workaround DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags}) +boost_test_run(algorithm_example DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags}) +boost_test_run(reversible_range DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags}) +boost_test_run(const_ranges DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags}) +boost_test_run(extension_mechanism DEPENDS boost_unit_test_framework COMPILE_FLAGS ${test_compile_flags})