From cde937faaa0136699dcfec47757837c3806d42dd Mon Sep 17 00:00:00 2001 From: "Troy D. Straszheim" Date: Sat, 24 Jan 2009 18:57:20 +0000 Subject: [PATCH] merge of cmake build files from trunk per beman [SVN r50756] --- CMakeLists.txt | 21 ++++++++++++++ module.cmake | 1 + test/CMakeLists.txt | 70 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 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..d29e160 --- /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 + function_types +) + +# Add a library target to the build system +boost_library_project( + function_types + # 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..9943033 --- /dev/null +++ b/module.cmake @@ -0,0 +1 @@ +boost_module(function_types DEPENDS mpl detail) \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..2f03877 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,70 @@ +# Get the boost dependencies for the tests +boost_additional_test_dependencies(function_types BOOST_DEPENDS test fusion) + +boost_test_compile(is_function classification/is_function.cpp) +boost_test_compile(is_function_pointer classification/is_function_pointer.cpp) +boost_test_compile(is_function_reference classification/is_function_reference.cpp) +boost_test_compile(is_member_function_pointer classification/is_member_function_pointer.cpp) +boost_test_compile(is_member_object_pointer classification/is_member_object_pointer.cpp) +boost_test_compile(is_callable_builtin classification/is_callable_builtin.cpp) +boost_test_compile(is_nonmember_callable_builtin classification/is_nonmember_callable_builtin.cpp) +boost_test_compile(is_member_pointer classification/is_member_pointer.cpp) + +boost_test_compile(is_cv_mem_func_ptr classification/is_cv_mem_func_ptr.cpp) +boost_test_compile(is_variadic classification/is_variadic.cpp) +boost_test_compile(is_cv_pointer classification/is_cv_pointer.cpp) + # [ compile classification/is_cv_function.cpp) + +# Decomposition + +boost_test_compile(components decomposition/components.cpp) +boost_test_compile(result_type decomposition/result_type.cpp) +boost_test_compile(function_arity decomposition/function_arity.cpp) +boost_test_compile(parameter_types decomposition/parameter_types.cpp) + +boost_test_compile(components_seq decomposition/components_seq.cpp) +boost_test_compile(class_type_transform decomposition/class_type_transform.cpp) + +boost_test_compile_fail(result_type_fail decomposition/result_type_fail.cpp) +boost_test_compile_fail(parameter_types_fail decomposition/parameter_types_fail.cpp) +boost_test_compile_fail(function_arity_fail decomposition/function_arity_fail.cpp) + +# Synthesis + +boost_test_compile(function_type synthesis/function_type.cpp) +boost_test_compile(function_pointer synthesis/function_pointer.cpp) +boost_test_compile(function_reference synthesis/function_reference.cpp) +boost_test_compile(member_function_pointer synthesis/member_function_pointer.cpp) +boost_test_compile(member_object_pointer synthesis/member_object_pointer.cpp) + +boost_test_compile(transformation synthesis/transformation.cpp) +boost_test_compile(mem_func_ptr_cv1 synthesis/mem_func_ptr_cv1.cpp) +boost_test_compile(mem_func_ptr_cv2 synthesis/mem_func_ptr_cv2.cpp) +boost_test_compile(mem_func_ptr_cv_ptr_to_this synthesis/mem_func_ptr_cv_ptr_to_this.cpp) +boost_test_compile(variadic_function_synthesis synthesis/variadic_function_synthesis.cpp) + # [ compile synthesis/cv_function_synthesis.cpp) + +# Reconfiguration + +boost_test_compile(preprocessing_mode reconfiguration/preprocessing_mode.cpp) +boost_test_compile(partial_arity_preprocessing reconfiguration/partial_arity_preprocessing.cpp) +boost_test_compile(cc_preprocessing reconfiguration/cc_preprocessing.cpp) + +# Custom calling conventions +boost_test_compile(nonmember_ccs custom_ccs/nonmember_ccs.cpp) +boost_test_compile(nonmember_ccs_exact custom_ccs/nonmember_ccs_exact.cpp) +message(STATUS "Function_Types/test/custom_ccs/member_ccs.cpp Needs love") +#boost_test_compile(member_ccs custom_ccs/member_ccs.cpp) +message(STATUS "Function_Types/test/custom_ccs/member_ccs_exact.cpp Needs love") +#boost_test_compile(member_ccs_exact custom_ccs/member_ccs_exact.cpp) + + +# Code from the examples +# Include the "example" directory +include_directories("${CMAKE_CURRENT_SOURCE_DIR}/example") +boost_test_compile(interpreter_example ../example/interpreter_example.cpp) +boost_test_compile(result_of_example ../example/result_of_example.cpp) +boost_test_compile(interface_example ../example/interface_example.cpp) +message(STATUS "Function_Types/example/fast_mem_fn_example.cpp Needs love") +#boost_test_compile(fast_mem_fn_example ../example/fast_mem_fn_example.cpp) +boost_test_compile(macro_type_args_example ../example/macro_type_args_example.cpp)