remove useless include directives

This commit is contained in:
Sébastien Loriot 2021-11-09 10:16:12 +01:00
parent 513d67d957
commit 58181afcdb
59 changed files with 1 additions and 144 deletions

View File

@ -6,8 +6,6 @@ project(AABB_tree_Tests)
find_package(CGAL REQUIRED)
include(${CGAL_USE_FILE}) # Kept to test the old behaviour.
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -6,8 +6,6 @@ project(Algebraic_foundations_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -6,7 +6,6 @@ find_package(CGAL REQUIRED COMPONENTS Core)
find_package(MPFI QUIET)
if(MPFI_FOUND AND NOT CGAL_DISABLE_GMP)
include(${CGAL_USE_FILE})
include(${MPFI_USE_FILE})
include(CGAL_VersionUtils)
create_single_source_cgal_program("Compare_1.cpp")

View File

@ -28,8 +28,6 @@ endif()
# include for local directory
include_directories(BEFORE include)
include(${CGAL_USE_FILE})
# Creating entries for all .cpp/.C files with "main" routine
# ##########################################################

View File

@ -6,8 +6,6 @@ project(Apollonius_graph_2_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -10,7 +10,6 @@ find_package(GMP QUIET)
if(GMP_FOUND)
include(${CGAL_USE_FILE})
include(CGAL_VersionUtils)
get_dependency_version(GMP)

View File

@ -6,8 +6,6 @@ project(Arrangement_on_surface_2_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -8,7 +8,6 @@ enable_testing()
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# Since CMake-2.8.12: New CMake script, that defines the targets and
# the CTest test cases.
include(${CMAKE_CURRENT_SOURCE_DIR}/cgal_test.cmake)

View File

@ -7,8 +7,6 @@ cmake_minimum_required(VERSION 3.1...3.20)
set(CMAKE_CXX_STANDARD 14)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("segment_coordinates.cpp")
create_single_source_cgal_program("triangle_coordinates.cpp")

View File

@ -7,8 +7,6 @@ cmake_minimum_required(VERSION 3.1...3.20)
set(CMAKE_CXX_STANDARD 14)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("test_almost_degenerate_segment.cpp")
create_single_source_cgal_program("test_segment_coordinates.cpp")

View File

@ -6,8 +6,6 @@ project(Bounding_volumes_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# Use Eigen
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
include(CGAL_Eigen3_support)

View File

@ -25,11 +25,6 @@ if(NOT Boost_FOUND)
endif()
# include for local directory
# include for local package
include(${CGAL_USE_FILE})
# Creating entries for all .cpp/.C files with "main" routine
# ##########################################################

View File

@ -11,7 +11,6 @@ endif()
find_package(CGAL REQUIRED COMPONENTS ImageIO)
if(CGAL_ImageIO_FOUND)
include(${CGAL_USE_FILE})
create_single_source_cgal_program("convert_raw_image_to_inr.cpp")
create_single_source_cgal_program("test_imageio.cpp")

View File

@ -10,8 +10,6 @@ endif()
find_package(CGAL REQUIRED COMPONENTS ImageIO)
include(${CGAL_USE_FILE})
if(WITH_CGAL_ImageIO)
create_single_source_cgal_program("test_trilinear_interpolation.cpp")
else()

View File

@ -6,8 +6,6 @@ project(Circular_kernel_3_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include_directories(BEFORE include)
# The following `include_directories` is used in the git layout

View File

@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.1...3.20)
project(Cone_spanners_2_Examples)
find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core)
include(${CGAL_USE_FILE})
find_package(LEDA QUIET)
if(CGAL_Core_FOUND OR LEDA_FOUND)

View File

@ -7,7 +7,6 @@ project(Cone_spanners_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
if(CGAL_Core_FOUND)
include(${CGAL_USE_FILE})
include_directories(BEFORE "include")
# create a target per cppfile

View File

@ -6,8 +6,6 @@ project(Envelope_3_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -6,8 +6,6 @@ project(Envelope_3_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -7,9 +7,6 @@ project(Heat_method_3_Examples)
# CGAL and its components
find_package(CGAL REQUIRED)
# include helper file
include(${CGAL_USE_FILE})
# Boost and its components
find_package(Boost REQUIRED)
@ -39,8 +36,6 @@ include_directories(BEFORE include)
# Creating entries for all C++ files with "main" routine
# ##########################################################
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("heat_method.cpp")
target_link_libraries(heat_method PUBLIC CGAL::Eigen3_support)
create_single_source_cgal_program("heat_method_polyhedron.cpp")

View File

@ -7,9 +7,6 @@ project(Heat_method_3_Tests)
# CGAL and its components
find_package(CGAL REQUIRED)
# include helper file
include(${CGAL_USE_FILE})
# Boost and its components
find_package(Boost REQUIRED)
@ -39,8 +36,6 @@ include_directories(BEFORE include)
# Creating entries for all C++ files with "main" routine
# ##########################################################
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("heat_method_concept.cpp")
target_link_libraries(heat_method_concept PUBLIC CGAL::Eigen3_support)
create_single_source_cgal_program("heat_method_surface_mesh_test.cpp")

View File

@ -6,9 +6,5 @@ project(Hyperbolic_triangulation_2_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("ht2_example.cpp")
create_single_source_cgal_program("ht2_example_color.cpp")

View File

@ -6,10 +6,6 @@ project(Hyperbolic_triangulation_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("ht2_test_clear.cpp")
create_single_source_cgal_program("ht2_test_locate.cpp")
create_single_source_cgal_program("ht2_test_remove.cpp")

View File

@ -32,10 +32,6 @@ endmacro()
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("endian.cpp")
create_single_source_cgal_program("deprecation_warning.cpp")

View File

@ -6,8 +6,6 @@ project(Interval_support_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -6,7 +6,6 @@ project(Kernel_23_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include_directories(BEFORE "include")
# create a target per cppfile

View File

@ -6,8 +6,6 @@ project(Mesh_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -13,7 +13,6 @@ endif()
find_package(CGAL QUIET COMPONENTS ImageIO)
if ( CGAL_FOUND )
include( ${CGAL_USE_FILE} )
find_package( TBB QUIET )
include(CGAL_TBB_support)

View File

@ -6,8 +6,6 @@ project(Minkowski_sum_2_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -13,8 +13,6 @@ project(Minkowski_sum_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -6,8 +6,6 @@ project(Modular_arithmetic_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -8,7 +8,6 @@ project(Number_types_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_VersionUtils)
include_directories(BEFORE include)

View File

@ -6,8 +6,6 @@ project(Optimal_bounding_box_Examples)
find_package(CGAL REQUIRED)
include(${CGAL_USE_FILE})
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
include(CGAL_Eigen3_support)
if(NOT TARGET CGAL::Eigen3_support)

View File

@ -6,8 +6,6 @@ project(Optimal_bounding_box_Tests)
find_package(CGAL REQUIRED)
include(${CGAL_USE_FILE})
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
include(CGAL_Eigen3_support)
if(NOT TARGET CGAL::Eigen3_support)

View File

@ -11,8 +11,6 @@ endif()
# CGAL and its components
find_package(CGAL REQUIRED COMPONENTS ImageIO)
include(${CGAL_USE_FILE})
# include for local package
# Use Eigen

View File

@ -10,8 +10,6 @@ endif()
find_package(CGAL REQUIRED COMPONENTS ImageIO)
include(${CGAL_USE_FILE})
# Use Eigen
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
include(CGAL_Eigen3_support)

View File

@ -6,7 +6,6 @@ project(Periodic_3_triangulation_3_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include_directories(BEFORE "include")
create_single_source_cgal_program("test_p3rt3_as_p3t3.cpp")

View File

@ -2,13 +2,10 @@ cmake_minimum_required(VERSION 3.1...3.20)
project(Periodic_4_hyperbolic_triangulation_2_Examples)
find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core)
include(${CGAL_USE_FILE})
find_package(LEDA QUIET)
if((CGAL_Core_FOUND OR LEDA_FOUND))
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("p4ht2_example_insertion.cpp")
else()

View File

@ -2,13 +2,10 @@ cmake_minimum_required(VERSION 3.1...3.20)
project(Periodic_4_hyperbolic_triangulation_2_Tests)
find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core)
include(${CGAL_USE_FILE})
find_package(LEDA QUIET)
if((CGAL_Core_FOUND OR LEDA_FOUND))
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("test_p4ht2_construct_point_2.cpp")
create_single_source_cgal_program("test_p4ht2_exact_complex_numbers.cpp")
create_single_source_cgal_program("test_p4ht2_intersections.cpp")

View File

@ -7,8 +7,6 @@ project(Polygon_mesh_processing_Tests)
# CGAL and its components
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
# Boost and its components
find_package(Boost REQUIRED)

View File

@ -8,9 +8,6 @@ cmake_minimum_required(VERSION 3.1...3.20)
# CGAL and its components
find_package(CGAL REQUIRED)
# include helper file
include(${CGAL_USE_FILE})
# Boost and its components
find_package(Boost REQUIRED)
@ -28,8 +25,6 @@ endif()
# Creating entries for all C++ files with "main" routine
# ##########################################################
include(CGAL_CreateSingleSourceCGALProgram)
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
include(CGAL_Eigen3_support)
if(NOT TARGET CGAL::Eigen3_support)

View File

@ -8,9 +8,6 @@ cmake_minimum_required(VERSION 3.1...3.20)
# CGAL and its components
find_package(CGAL REQUIRED)
# include helper file
include(${CGAL_USE_FILE})
# Boost and its components
find_package(Boost REQUIRED)
@ -28,8 +25,6 @@ endif()
# Creating entries for all C++ files with "main" routine
# ##########################################################
include(CGAL_CreateSingleSourceCGALProgram)
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
include(CGAL_Eigen3_support)
if(NOT TARGET CGAL::Eigen3_support)

View File

@ -6,7 +6,6 @@ project(Polynomial_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include_directories(BEFORE "include")
# create a target per cppfile

View File

@ -6,9 +6,6 @@ project(Segment_Delaunay_graph_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include_directories(BEFORE "include")
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -6,9 +6,6 @@ project(Segment_Delaunay_graph_Linf_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include_directories(BEFORE "include")
# create a target per cppfile
file(
GLOB cppfiles

View File

@ -6,9 +6,6 @@ project(Shape_detection_Examples)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
# Use Eigen.
find_package(Eigen3 3.1.0 QUIET) # (3.1.0 or greater)
include(CGAL_Eigen3_support)

View File

@ -6,9 +6,6 @@ project(Shape_detection_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
# Use Eigen.
find_package(Eigen3 3.1.0 QUIET) # (3.1.0 or greater)
include(CGAL_Eigen3_support)

View File

@ -8,9 +8,6 @@ set(CMAKE_CXX_STANDARD 14)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
# Find OSQP library and headers.
find_package(OSQP QUIET)
include(CGAL_OSQP_support)

View File

@ -8,9 +8,6 @@ set(CMAKE_CXX_STANDARD 14)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
# Find OSQP library and headers.
find_package(OSQP QUIET)
include(CGAL_OSQP_support)

View File

@ -5,11 +5,7 @@ cmake_minimum_required(VERSION 3.1...3.20)
project( Straight_skeleton_2_Examples )
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})
find_package(CGAL REQUIRED COMPONENTS Qt5 Core)
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)

View File

@ -6,7 +6,6 @@ project(Straight_skeleton_2_Tests)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include_directories(BEFORE "include")
# create a target per cppfile

View File

@ -7,9 +7,6 @@ project(Surface_mesh_approximation_Examples)
# CGAL and its components
find_package(CGAL REQUIRED)
# include helper file
include(${CGAL_USE_FILE})
# Boost
find_package(Boost)
if(NOT Boost_FOUND)
@ -30,8 +27,6 @@ endif()
# Creating entries for all C++ files with "main" routine
# ##########################################################
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("vsa_approximation_2_example.cpp")
target_link_libraries(vsa_approximation_2_example PUBLIC CGAL::Eigen3_support)

View File

@ -7,9 +7,6 @@ project(Surface_mesh_approximation_Tests)
# CGAL and its components
find_package(CGAL REQUIRED)
# include helper file
include(${CGAL_USE_FILE})
# Boost
find_package(Boost)
if(NOT Boost_FOUND)
@ -30,8 +27,6 @@ endif()
# Creating entries for all C++ files with "main" routine
# ##########################################################
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("vsa_class_interface_test.cpp")
target_link_libraries(vsa_class_interface_test PUBLIC CGAL::Eigen3_support)

View File

@ -3,8 +3,6 @@ project(Surface_mesh_shortest_path_Tests)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
include(${CGAL_USE_FILE})
find_package(LEDA QUIET)
include_directories(BEFORE "include")

View File

@ -7,8 +7,6 @@ project(Surface_mesh_simplification_Examples)
# CGAL and its components
find_package(CGAL REQUIRED)
include(${CGAL_USE_FILE})
# Boost and its components
find_package(Boost)
if(NOT Boost_FOUND)

View File

@ -11,8 +11,6 @@ find_package(CGAL REQUIRED COMPONENTS ImageIO)
if(CGAL_ImageIO_FOUND)
include(${CGAL_USE_FILE})
create_single_source_cgal_program("mesh_a_3d_gray_image.cpp")
create_single_source_cgal_program("mesh_an_implicit_function.cpp")

View File

@ -15,8 +15,6 @@ set(TRAP 1) # Trapezoidal decomposition
set(NAIVE 2)
set(WALK 3)
include(${CGAL_USE_FILE})
function(compile name source_file point_location traits)
# message(compile ${source_file})
add_executable(${name} ${source_file})

View File

@ -7,8 +7,6 @@ cmake_minimum_required(VERSION 3.1...3.20)
set(CMAKE_CXX_STANDARD 14)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("weights.cpp")
create_single_source_cgal_program("coordinates_one_query.cpp")

View File

@ -7,8 +7,6 @@ cmake_minimum_required(VERSION 3.1...3.20)
set(CMAKE_CXX_STANDARD 14)
find_package(CGAL REQUIRED COMPONENTS Core)
include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)
create_single_source_cgal_program("test_uniform_weights.cpp")
create_single_source_cgal_program("test_shepard_weights.cpp")