Remove component Core from find_package() calls (#9561)

## Summary of Changes

Core Numbers is not a component so there is no need to add it in
`find_package(CGAL)`.

I did not simplify code which involves the macro `CGAL_USE_CORE` as the
usage of Core can be switched off with `CGAL_NO_CORE`
[here](https://github.com/CGAL/cgal/blob/dfac790cff37256c174b3b1d024e529fca11a2d8/Installation/include/CGAL/Installation/internal/enable_third_party_libraries.h#L61).

Note that #9442 suggested to remove the macro.

## Release Management

* Affected package(s): several
* Issue(s) solved (if any): fix #9442
* Feature/Small Feature (if any):
* Link to compiled documentation (obligatory for small feature) [*wrong
link name to be changed*](httpssss://wrong_URL_to_be_changed/Manual/Pkg)
* License and copyright ownership:
This commit is contained in:
Sebastien Loriot
2026-07-29 19:28:50 +02:00
committed by GitHub
85 changed files with 90 additions and 106 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(AABB_traits_benchmark)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("test.cpp")
create_single_source_cgal_program("tree_construction.cpp")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Algebraic_foundations_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# create a target per cppfile
file(
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Algebraic_kernel_d_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(MPFI QUIET)
if(MPFI_FOUND AND NOT CGAL_DISABLE_GMP)
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(Algebraic_kernel_d_Tests)
# CGAL and its components
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(MPFI QUIET)
if(MPFI_FOUND)
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Apollonius_graph_2_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# create a target per cppfile
file(
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Arithmetic_kernel_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(GMP)
@@ -12,7 +12,7 @@ if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core Qt6)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)
find_package(Qt6 QUIET COMPONENTS Widgets)
if (CGAL_Qt6_FOUND AND Qt6_FOUND)
@@ -110,7 +110,7 @@ if (CGAL_Qt6_FOUND AND Qt6_FOUND)
${CGAL_Qt6_MOC_FILES})
target_link_libraries(arrangement_2 PRIVATE Qt6::Widgets)
target_link_libraries(arrangement_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt6 CGAL::CGAL_Core)
target_link_libraries(arrangement_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt6)
add_to_cached_list(CGAL_EXECUTABLE_TARGETS arrangement_2)
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Arrangement_on_surface_2_Examples)
find_package(CGAL REQUIRED COMPONENTS Core OPTIONAL_COMPONENTS Qt6)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)
# create a target per cppfile
file(
@@ -6,6 +6,6 @@ project(Arrangement_on_surface_2_Tests)
enable_testing()
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
include(${CMAKE_CURRENT_SOURCE_DIR}/cgal_test.cmake)
@@ -163,7 +163,7 @@ function(cgal_arr_2_add_target exe_name source_file)
set(name ${exe_name}_${suffix})
endif()
add_executable(${name} ${source_file})
target_link_libraries(${name} CGAL::CGAL CGAL::CGAL_Core)
target_link_libraries(${name} CGAL::CGAL)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${name} )
separate_arguments(flags UNIX_COMMAND "${TESTSUITE_CXXFLAGS}")
target_compile_options(${name} PRIVATE ${flags})
@@ -3,7 +3,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Barycentric_coordinates_2_Benchmarks)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("benchmark_segment_coordinates.cpp")
create_single_source_cgal_program("benchmark_triangle_coordinates.cpp")
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(Barycentric_coordinates_2_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("segment_coordinates.cpp")
create_single_source_cgal_program("triangle_coordinates.cpp")
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(Barycentric_coordinates_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("test_almost_degenerate_segment.cpp")
create_single_source_cgal_program("test_segment_coordinates.cpp")
@@ -5,7 +5,7 @@ set(CMAKE_CXX_FLAGS "${CMAXE_CXX_FLAGS} -Wall -Wextra -Werror")
set(CMAKE_CXX_STANDARD 14)
find_package(CGAL QUIET COMPONENTS Core)
find_package(CGAL REQUIRED)
if(CGAL_FOUND)
include(${CGAL_USE_FILE})
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Boolean_set_operations_2_Examples)
find_package(CGAL REQUIRED COMPONENTS Core OPTIONAL_COMPONENTS Qt6)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)
# create a target per cppfile
file(
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Bounding_volumes_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# Use Eigen
find_package(Eigen3 QUIET)
+1 -1
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(Core_Examples)
# CGAL and its components
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("zero-one.cpp")
create_single_source_cgal_program("delaunay.cpp")
@@ -18,7 +18,7 @@ endmacro()
#path where to build libraries
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(Eigen3 QUIET)
include(CGAL_Eigen3_support)
@@ -96,7 +96,7 @@ if(IPE_FOUND AND IPE_VERSION)
endif ()
cgal_add_compilation_test(CGAL_${IPELET})
endforeach(IPELET)
target_link_libraries(CGAL_cone_spanners PRIVATE CGAL::CGAL CGAL::CGAL_Core
target_link_libraries(CGAL_cone_spanners PRIVATE CGAL::CGAL
CGAL::Eigen3_support)
#example in doc not installed
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Circular_kernel_3_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
include_directories(BEFORE include)
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Cone_spanners_2_Examples)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(LEDA QUIET)
create_single_source_cgal_program("compute_cones.cpp")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Cone_spanners_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(LEDA QUIET)
create_single_source_cgal_program("cones_inexact.cpp")
@@ -11,12 +11,7 @@ add_executable(my_executable my_source_file.cpp)
target_link_libraries(my_executable CGAL::CGAL)
\endcode
Other \cgal libraries are linked similarly. For example, with `CGAL_Core`:
\code
find_package(CGAL REQUIRED COMPONENTS Core)
target_link_libraries(my_executable CGAL::CGAL CGAL::CGAL_Core)
\endcode
There are also imported targets to link with \cgal dependencies that can be found in
the section \subpage thirdparty.
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Envelope_3_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# create a target per cppfile
file(
+1 -1
View File
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Envelope_3_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("triangles_test.cpp")
create_single_source_cgal_program("spheres_test.cpp")
@@ -6,13 +6,11 @@ project(Filtered_kernel_test)
add_executable(bench_simple_comparisons bench_simple_comparisons.cpp)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
add_executable(bench_orientation_3 "orientation_3.cpp")
target_link_libraries(bench_orientation_3 CGAL::CGAL_Core)
add_executable(bench_comparisons "orientation_3.cpp")
target_link_libraries(bench_comparisons CGAL::CGAL_Core)
set_property(
TARGET bench_comparisons
APPEND
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project( Frechet_distance_Examples )
find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core )
find_package(CGAL REQUIRED)
find_package(Eigen3 QUIET)
+1 -1
View File
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Generator_example)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(Boost COMPONENTS program_options)
if(Boost_PROGRAM_OPTIONS_FOUND)
+1 -1
View File
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Polygon_Demo)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6 Core)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)
find_package(Eigen3 QUIET)
include(CGAL_Eigen3_support)
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Segment_Delaunay_graph_2_Demo)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6 Core)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)
find_package(Qt6 QUIET COMPONENTS Widgets)
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Segment_Delaunay_graph_Linf_2_Demo)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6 Core)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)
find_package(Qt6 QUIET COMPONENTS Widgets)
include_directories(BEFORE ./include)
@@ -4,6 +4,6 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Hyperbolic_triangulation_2_benchmark)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("bench_insertion_with_different_kernels.cpp")
@@ -4,7 +4,7 @@ project(Hyperbolic_triangulation_2_Demo)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core Qt6)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)
find_package(LEDA QUIET)
# Find Qt6 itself
@@ -20,11 +20,6 @@ if(CGAL_Qt6_FOUND AND Qt6_FOUND)
target_include_directories(HDT2 PRIVATE ./ ./include)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS HDT2 )
target_link_libraries ( HDT2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt6 Qt6::Widgets)
if(CGAL_Core_FOUND)
target_link_libraries ( HDT2 PRIVATE CGAL::CGAL_Core)
else()
target_link_libraries ( HDT2 PRIVATE ${LEDA_LIBRARIES})
endif()
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
cgal_add_compilation_test( HDT2 )
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Hyperbolic_triangulation_2_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(LEDA QUIET)
create_single_source_cgal_program("ht2_example.cpp")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Hyperbolic_triangulation_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(LEDA QUIET)
create_single_source_cgal_program("ht2_test_clear.cpp")
@@ -13,7 +13,7 @@ macro(create_link_to_program COMPONENT)
CGAL_add_test(link_to_${COMPONENT})
endmacro()
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
include(CGAL_CreateSingleSourceCGALProgram)
include(CGAL_SetupGMP)
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Interval_support_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# create a target per cppfile
file(
+1 -1
View File
@@ -4,6 +4,6 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Kernel_23_benchmark)
find_package(CGAL QUIET OPTIONAL_COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program( "cmp_epeck_points.cpp" )
+1 -1
View File
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.19...3.31)
project(Kernel_23_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
include_directories(BEFORE "include")
@@ -5,7 +5,7 @@ if(POLICY CMP0074)
endif()
if(NOT CGAL_DISABLE_GMP)
if(TARGET CGAL::Eigen3_support)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
qt6_wrap_ui(parameterizationUI_FILES Parameterization_widget.ui OTE_dialog.ui)
cgal_lab_plugin(parameterization_plugin Parameterization_plugin
+1 -1
View File
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Mesh_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# create a target per cppfile
file(
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Minkowski_sum_2_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# create a target per cppfile
file(
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Minkowski_sum_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# create a target per cppfile
file(
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Modular_arithmetic_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# create a target per cppfile
file(
@@ -6,7 +6,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Number_types_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
include_directories(BEFORE include)
+1 -1
View File
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Orthtree_benchmarks)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("construction.cpp")
create_single_source_cgal_program("nearest_neighbor.cpp")
+1 -1
View File
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Orthtree_Examples)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("octree_build_from_point_set.cpp")
create_single_source_cgal_program("octree_build_from_point_vector.cpp")
+1 -1
View File
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Orthtree_Tests)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("test_octree_equality.cpp")
create_single_source_cgal_program("test_octree_refine.cpp")
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(PMP_Boolean_operations_Tests)
# CGAL and its components
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("autorefinement_sm.cpp")
create_single_source_cgal_program("corefine_non_manifold.cpp" )
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(PMP_Mesh_repair_Tests)
# CGAL and its components
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("orient_polygon_mesh_test.cpp")
create_single_source_cgal_program("orient_polygon_soup_test.cpp")
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(PMP_Remeshing_Tests)
# CGAL and its components
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("extrude_test.cpp")
create_single_source_cgal_program("remeshing_test.cpp")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Periodic_3_triangulation_3_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
include_directories(BEFORE "include")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Periodic_4_hyperbolic_triangulation_2_Benchmarks)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("bench_p4ht2_hyperbolic_vs_euclidean.cpp")
create_single_source_cgal_program("bench_p4ht2_insertion.cpp")
@@ -8,7 +8,7 @@ include_directories(${CMAKE_BINARY_DIR})
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
find_package(CGAL REQUIRED COMPONENTS Core Qt6)
find_package(CGAL REQUIRED COMPONENTS Qt6)
find_package(LEDA QUIET)
@@ -24,9 +24,7 @@ if(Qt6_FOUND AND CGAL_Qt6_FOUND)
qt_add_executable(P4HDT2 P4HDT2.cpp P4HDT2.ui Main_resources.qrc)
target_link_libraries(P4HDT2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt6 Qt6::Widgets)
if(TARGET CGAL::CGAL_Core)
target_link_libraries(P4HDT2 PRIVATE CGAL::CGAL_Core)
endif()
if(LEDA_FOUND)
target_link_libraries(P4HDT2 PRIVATE ${LEDA_LIBRARIES})
endif()
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Periodic_4_hyperbolic_triangulation_2_Examples)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(LEDA QUIET)
create_single_source_cgal_program("p4ht2_example_insertion.cpp")
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Periodic_4_hyperbolic_triangulation_2_Tests)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(LEDA QUIET)
create_single_source_cgal_program("test_p4ht2_construct_point_2.cpp")
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(Polygon_mesh_processing_Tests)
# CGAL and its components
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("connected_component_polyhedron.cpp")
create_single_source_cgal_program("connected_component_surface_mesh.cpp")
+1 -1
View File
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Polynomial_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
include_directories(BEFORE "include")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(copy_n_benchmark_example)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("copy_n_benchmark.cpp")
create_single_source_cgal_program("copy_n_use_case_benchmark.cpp")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Segment_Delaunay_graph_2_example)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("benchmark.cpp")
create_single_source_cgal_program("benchmark_nox.cpp")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Segment_Delaunay_graph_2_Examples)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("sdg-count-sites.cpp")
create_single_source_cgal_program("sdg-fast-sp.cpp")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Segment_Delaunay_graph_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
include_directories(BEFORE "include")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Segment_Delaunay_graph_2_example)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("sdg-creation-time.cpp")
create_single_source_cgal_program("benchmark-gen.cpp")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Segment_Delaunay_graph_Linf_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
include_directories(BEFORE "include")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Shape_detection_Benchmarks)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(Eigen3 QUIET)
include(CGAL_Eigen3_support)
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Shape_detection_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("efficient_RANSAC_with_custom_shape.cpp")
create_single_source_cgal_program("efficient_RANSAC_with_parameters.cpp")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Shape_detection_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("test_efficient_RANSAC_cone_connected_component.cpp")
create_single_source_cgal_program("test_efficient_RANSAC_cone_parameters.cpp")
@@ -5,7 +5,7 @@ project(Shape_regularization_Benchmarks)
cmake_minimum_required(VERSION 3.12...3.31)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# Find OSQP library and headers.
find_package(OSQP QUIET)
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(Shape_regularization_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# Find OSQP library and headers.
find_package(OSQP QUIET)
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(Shape_regularization_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
# Find OSQP library and headers.
find_package(OSQP QUIET)
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Spatial_searching_)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
include_directories(BEFORE "include")
@@ -4,6 +4,6 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(tools_)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("points_in_bbox.cpp")
@@ -4,6 +4,6 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Spatial_sorting_)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("simple.cpp")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project( Straight_skeleton_2_Examples )
find_package(CGAL REQUIRED COMPONENTS Qt6 Core)
find_package(CGAL REQUIRED)
include_directories(BEFORE include)
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Straight_skeleton_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Qt6 Core)
find_package(CGAL REQUIRED COMPONENTS Qt6)
find_package(LEDA QUIET)
include_directories(BEFORE "include")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Straight_skeleton_extrusion_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Qt6 Core)
find_package(CGAL REQUIRED COMPONENTS Qt6)
find_package(LEDA QUIET)
include_directories(BEFORE "include")
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(benchmark_for_closest_rotation)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(Eigen3 QUIET)
include(CGAL_Eigen3_support)
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Surface_mesh_shortest_path_Tests)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
find_package(CGAL REQUIRED)
include_directories(BEFORE "include")
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Surface_sweep_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
set(CGAL_SEGMENT_TRAITS 1)
set(CGAL_POLYLINE_TRAITS 11)
@@ -19,12 +19,10 @@ function(compile name source_file point_location traits)
# message(compile ${source_file})
add_executable(${name} ${source_file})
add_to_cached_list(CGAL_EXECUTABLE_TARGETS ${name})
if(TARGET CGAL::CGAL_Core)
target_link_libraries(${name} PRIVATE CGAL::CGAL CGAL::CGAL_Core)
else()
target_link_libraries(${name} PRIVATE CGAL::CGAL)
endif()
target_compile_definitions(
target_compile_definitions(
${name} PRIVATE -DCGAL_ARR_TEST_POINT_LOCATION=${point_location}
-DCGAL_ARR_TEST_TRAITS=${traits})
endfunction()
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(Triangulation_benchmark)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(Eigen3 QUIET)
include(CGAL_Eigen3_support)
@@ -10,7 +10,7 @@ include_directories(${CMAKE_BINARY_DIR})
set(CMAKE_AUTOMOC ON)
# CGAL and its components
find_package(CGAL REQUIRED COMPONENTS Core Qt6)
find_package(CGAL REQUIRED COMPONENTS Qt6)
find_package(Qt6 QUIET COMPONENTS Widgets)
if (NOT CGAL_Qt6_FOUND OR NOT Qt6_FOUND)
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project( Triangulation_on_sphere_2_Benchmarks )
find_package(CGAL REQUIRED COMPONENTS Core )
find_package(CGAL REQUIRED)
create_single_source_cgal_program( "bench_dtos2.cpp" )
create_single_source_cgal_program( "generate_points.cpp" )
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project( Triangulation_on_sphere_2_Examples )
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(LEDA QUIET)
create_single_source_cgal_program( "triang_on_sphere.cpp" )
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project( Triangulation_on_sphere_2_Tests )
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
find_package(LEDA QUIET)
create_single_source_cgal_program( "test_dtos.cpp" )
+1 -1
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(Weights_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("weights.cpp")
create_single_source_cgal_program("coordinates_one_query.cpp")
+1 -1
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12...3.31)
project(Weights_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("test_uniform_weights.cpp")
create_single_source_cgal_program("test_shepard_weights.cpp")