From 682994c28aa90a4db259e6d4a5e3e7fe123cd6fc Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Sat, 24 Feb 2024 09:44:57 +0000 Subject: [PATCH] remove alternatives and add for convex hull --- test/algorithms/CMakeLists.txt | 1 + test/algorithms/convex_hull/CMakeLists.txt | 14 ++++++++++++++ .../set_operations/difference/CMakeLists.txt | 9 --------- .../set_operations/intersection/CMakeLists.txt | 16 ---------------- .../set_operations/union/CMakeLists.txt | 11 ----------- 5 files changed, 15 insertions(+), 36 deletions(-) create mode 100644 test/algorithms/convex_hull/CMakeLists.txt diff --git a/test/algorithms/CMakeLists.txt b/test/algorithms/CMakeLists.txt index f1e59ad408..fd43712036 100644 --- a/test/algorithms/CMakeLists.txt +++ b/test/algorithms/CMakeLists.txt @@ -6,6 +6,7 @@ add_subdirectory(area) add_subdirectory(buffer) +add_subdirectory(convex_hull) add_subdirectory(detail) add_subdirectory(overlay) add_subdirectory(relate) diff --git a/test/algorithms/convex_hull/CMakeLists.txt b/test/algorithms/convex_hull/CMakeLists.txt new file mode 100644 index 0000000000..cd3255ce50 --- /dev/null +++ b/test/algorithms/convex_hull/CMakeLists.txt @@ -0,0 +1,14 @@ +# Boost.Geometry +# Copyright (c) 2024 Barend Gehrels, Amsterdam, the Netherlands. +# Use, modification and distribution is subject to the Boost Software License, +# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +foreach(item IN ITEMS + convex_hull + convex_hull_multi + convex_hull_robust + convex_hull_sph_geo + ) + boost_geometry_add_unit_test("algorithms" ${item}) +endforeach() diff --git a/test/algorithms/set_operations/difference/CMakeLists.txt b/test/algorithms/set_operations/difference/CMakeLists.txt index abb26fb96c..1878dc5c34 100644 --- a/test/algorithms/set_operations/difference/CMakeLists.txt +++ b/test/algorithms/set_operations/difference/CMakeLists.txt @@ -13,15 +13,6 @@ foreach(item IN ITEMS target_compile_definitions(${BOOST_GEOMETRY_UNIT_TEST_NAME} PRIVATE BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE) endforeach() -foreach(item IN ITEMS - difference - difference_multi - ) - boost_geometry_add_unit_test("algorithms_alternative" ${item}) - target_compile_definitions(${BOOST_GEOMETRY_UNIT_TEST_NAME} PRIVATE BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE) - target_compile_definitions(${BOOST_GEOMETRY_UNIT_TEST_NAME} PRIVATE BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE) -endforeach() - foreach(item IN ITEMS difference_gc difference_l_a_sph diff --git a/test/algorithms/set_operations/intersection/CMakeLists.txt b/test/algorithms/set_operations/intersection/CMakeLists.txt index a9559d73c9..baf7d480bc 100644 --- a/test/algorithms/set_operations/intersection/CMakeLists.txt +++ b/test/algorithms/set_operations/intersection/CMakeLists.txt @@ -12,15 +12,6 @@ foreach(item IN ITEMS target_compile_definitions(${BOOST_GEOMETRY_UNIT_TEST_NAME} PRIVATE BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE) endforeach() -foreach(item IN ITEMS - intersection - intersection_multi - ) - boost_geometry_add_unit_test("algorithms_alternative" ${item}) - target_compile_definitions(${BOOST_GEOMETRY_UNIT_TEST_NAME} PRIVATE BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE) - target_compile_definitions(${BOOST_GEOMETRY_UNIT_TEST_NAME} PRIVATE BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE) -endforeach() - foreach(item IN ITEMS intersection_box intersection_gc @@ -33,11 +24,4 @@ foreach(item IN ITEMS intersection_integer ) boost_geometry_add_unit_test("algorithms" ${item}) -endforeach() - -foreach(item IN ITEMS - intersection_linear_linear - ) - boost_geometry_add_unit_test("algorithms_alternative" ${item}) - target_compile_definitions(${BOOST_GEOMETRY_UNIT_TEST_NAME} PRIVATE BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE) endforeach() \ No newline at end of file diff --git a/test/algorithms/set_operations/union/CMakeLists.txt b/test/algorithms/set_operations/union/CMakeLists.txt index aaa8d9008d..6cfd20a50a 100644 --- a/test/algorithms/set_operations/union/CMakeLists.txt +++ b/test/algorithms/set_operations/union/CMakeLists.txt @@ -13,17 +13,6 @@ foreach(item IN ITEMS target_compile_definitions(${BOOST_GEOMETRY_UNIT_TEST_NAME} PRIVATE BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE) endforeach() -foreach(item IN ITEMS - union - union_multi - union_other_types - union_issues - ) - boost_geometry_add_unit_test("algorithms_alternative" ${item}) - target_compile_definitions(${BOOST_GEOMETRY_UNIT_TEST_NAME} PRIVATE BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE) - target_compile_definitions(${BOOST_GEOMETRY_UNIT_TEST_NAME} PRIVATE BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE) -endforeach() - foreach(item IN ITEMS union_aa_geo union_aa_sph