Skip to content

Commit 4fc486b

Browse files
committed
Purge CMakeLists.txts from obsolete code / noise
1 parent 7cb21c2 commit 4fc486b

File tree

83 files changed

+20
-761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+20
-761
lines changed

Algebraic_kernel_d/examples/Algebraic_kernel_d/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ find_package(MPFI QUIET)
77

88
if(MPFI_FOUND AND NOT CGAL_DISABLE_GMP)
99
include(${MPFI_USE_FILE})
10-
include(CGAL_VersionUtils)
1110
create_single_source_cgal_program("Compare_1.cpp")
1211
create_single_source_cgal_program("Construct_algebraic_real_1.cpp")
1312
create_single_source_cgal_program("Isolate_1.cpp")

Algebraic_kernel_d/test/Algebraic_kernel_d/CMakeLists.txt

-15
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,9 @@ if(RS3_FOUND)
1414
include(${RS3_USE_FILE})
1515
endif()
1616

17-
# Boost and its components
18-
find_package(Boost)
19-
20-
if(NOT Boost_FOUND)
21-
22-
message(
23-
STATUS "This project requires the Boost library, and will not be compiled.")
24-
25-
return()
26-
27-
endif()
28-
2917
# include for local directory
3018
include_directories(BEFORE include)
3119

32-
# Creating entries for all .cpp/.C files with "main" routine
33-
# ##########################################################
34-
3520
create_single_source_cgal_program("cyclic.cpp")
3621
create_single_source_cgal_program("Descartes.cpp")
3722

Arrangement_on_surface_2/demo/Arrangement_on_surface_2/CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ if (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
124124
else()
125125
set(MISSING_DEPS "")
126126

127-
if(NOT CGAL_FOUND)
128-
set(MISSING_DEPS "CGAL, ${MISSING_DEPS}")
129-
endif()
130127
if(NOT CGAL_Qt5_FOUND)
131128
set(MISSING_DEPS "the CGAL Qt5 library, ${MISSING_DEPS}")
132129
endif()

BGL/examples/BGL_LCC/CMakeLists.txt

-17
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,6 @@ project(BGL_LCC_Examples)
77
# CGAL and its components
88
find_package(CGAL REQUIRED)
99

10-
# Boost and its components
11-
find_package(Boost REQUIRED)
12-
13-
if(NOT Boost_FOUND)
14-
15-
message(
16-
STATUS "This project requires the Boost library, and will not be compiled.")
17-
18-
return()
19-
20-
endif()
21-
22-
# include for local directory
23-
24-
# Creating entries for all C++ files with "main" routine
25-
# ##########################################################
26-
2710
# create a target per cppfile
2811
file(
2912
GLOB_RECURSE cppfiles

BGL/examples/BGL_OpenMesh/CMakeLists.txt

-29
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,9 @@ project(BGL_OpenMesh_Examples)
77
# CGAL and its components
88
find_package(CGAL REQUIRED)
99

10-
# Boost and its components
11-
find_package(Boost REQUIRED)
12-
13-
if(NOT Boost_FOUND)
14-
15-
message(
16-
STATUS "This project requires the Boost library, and will not be compiled.")
17-
18-
return()
19-
20-
endif()
21-
2210
find_package(OpenMesh QUIET)
23-
2411
if(OpenMesh_FOUND)
2512
include(UseOpenMesh)
26-
else()
27-
28-
message(
29-
STATUS "NOTICE: These examples require OpenMesh and will not be compiled.")
30-
return()
31-
32-
endif()
33-
34-
# include for local directory
35-
36-
# include for local package
37-
38-
# Creating entries for all C++ files with "main" routine
39-
# ##########################################################
40-
41-
if(OpenMesh_FOUND)
4213
create_single_source_cgal_program("TriMesh.cpp")
4314
target_link_libraries(TriMesh PRIVATE ${OPENMESH_LIBRARIES})
4415
else()

BGL/examples/BGL_graphcut/CMakeLists.txt

-19
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,6 @@ project(BGL_graphcut_Examples)
88
# CGAL and its components
99
find_package(CGAL REQUIRED)
1010

11-
# Boost and its components
12-
find_package(Boost REQUIRED)
13-
14-
if(NOT Boost_FOUND)
15-
16-
message(
17-
STATUS "This project requires the Boost library, and will not be compiled.")
18-
19-
return()
20-
21-
endif()
22-
23-
# include for local directory
24-
25-
# include for local package
26-
27-
# Creating entries for all C++ files with "main" routine
28-
# ##########################################################
29-
3011
create_single_source_cgal_program("alpha_expansion_example.cpp")
3112
create_single_source_cgal_program(
3213
"face_selection_borders_regularization_example.cpp")

BGL/examples/BGL_polyhedron_3/CMakeLists.txt

-19
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,6 @@ project(BGL_polyhedron_3_Examples)
77
# CGAL and its components
88
find_package(CGAL REQUIRED)
99

10-
# Boost and its components
11-
find_package(Boost REQUIRED)
12-
13-
if(NOT Boost_FOUND)
14-
15-
message(
16-
STATUS "This project requires the Boost library, and will not be compiled.")
17-
18-
return()
19-
20-
endif()
21-
22-
# include for local directory
23-
24-
# include for local package
25-
26-
# Creating entries for all C++ files with "main" routine
27-
# ##########################################################
28-
2910
create_single_source_cgal_program("distance.cpp")
3011
create_single_source_cgal_program("incident_vertices.cpp")
3112
create_single_source_cgal_program("kruskal.cpp")

BGL/examples/BGL_surface_mesh/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ project(BGL_surface_mesh_Examples)
33

44
find_package(CGAL REQUIRED)
55

6-
# include for local package
7-
86
create_single_source_cgal_program("prim.cpp")
97
create_single_source_cgal_program("gwdwg.cpp")
108
create_single_source_cgal_program("seam_mesh.cpp")

BGL/test/BGL/CMakeLists.txt

-16
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ project(BGL_Tests)
77
# CGAL and its components
88
find_package(CGAL REQUIRED)
99

10-
# Boost and its components
11-
find_package(Boost)
12-
13-
if(NOT Boost_FOUND)
14-
message(
15-
STATUS "This project requires the Boost library, and will not be compiled.")
16-
return()
17-
endif()
18-
1910
find_package(OpenMesh QUIET)
2011

2112
if(OpenMesh_FOUND)
@@ -24,17 +15,10 @@ if(OpenMesh_FOUND)
2415
else()
2516
message(STATUS "Tests that use OpenMesh will not be compiled.")
2617
endif()
27-
28-
# include for local package
29-
30-
# Creating entries for all .cpp/.C files with "main" routine
31-
# ##########################################################
32-
3318
if(OpenMesh_FOUND)
3419
create_single_source_cgal_program("graph_concept_OpenMesh.cpp")
3520
target_link_libraries(graph_concept_OpenMesh PRIVATE ${OPENMESH_LIBRARIES})
3621
endif()
37-
3822
create_single_source_cgal_program("test_split.cpp")
3923
create_single_source_cgal_program("next.cpp")
4024
create_single_source_cgal_program("test_circulator.cpp")

Barycentric_coordinates_2/benchmark/Barycentric_coordinates_2/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ project(Barycentric_coordinates_2_Benchmarks)
66
cmake_minimum_required(VERSION 3.1...3.23)
77

88
find_package(CGAL REQUIRED COMPONENTS Core)
9-
include(${CGAL_USE_FILE})
10-
include(CGAL_CreateSingleSourceCGALProgram)
119

1210
create_single_source_cgal_program("benchmark_segment_coordinates.cpp")
1311
create_single_source_cgal_program("benchmark_triangle_coordinates.cpp")

CGAL_Core/examples/Core/CMakeLists.txt

+1-20
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,8 @@ project(Core_Examples)
55
find_package(CGAL REQUIRED COMPONENTS Core)
66

77
if(NOT CGAL_Core_FOUND)
8-
9-
message(
10-
STATUS
11-
"This project requires the CGAL_Core library, and will not be compiled.")
12-
return()
13-
14-
endif()
15-
16-
# Boost and its components
17-
find_package(Boost)
18-
19-
if(NOT Boost_FOUND)
20-
21-
message(
22-
STATUS "This project requires the Boost library, and will not be compiled.")
23-
8+
message("NOTICE: This project requires the CGAL_Core library, and will not be compiled.")
249
return()
25-
2610
endif()
2711

28-
# Creating entries for all .cpp/.C files with "main" routine
29-
# ##########################################################
30-
3112
create_single_source_cgal_program("delaunay.cpp")

CGAL_ImageIO/examples/CGALimageIO/CMakeLists.txt

+4-12
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@ project(CGALimageIO_Examples)
66

77
find_package(CGAL REQUIRED COMPONENTS ImageIO)
88

9-
if(CGAL_ImageIO_FOUND)
10-
11-
create_single_source_cgal_program("convert_raw_image_to_inr.cpp")
12-
create_single_source_cgal_program("test_imageio.cpp")
13-
create_single_source_cgal_program("extract_a_sub_image.cpp")
14-
create_single_source_cgal_program("slice_image.cpp")
15-
else()
16-
message(
17-
STATUS
18-
"NOTICE: This demo needs the CGAL ImageIO library, and will not be compiled."
19-
)
20-
endif()
9+
create_single_source_cgal_program("convert_raw_image_to_inr.cpp")
10+
create_single_source_cgal_program("test_imageio.cpp")
11+
create_single_source_cgal_program("extract_a_sub_image.cpp")
12+
create_single_source_cgal_program("slice_image.cpp")

Classification/examples/Classification/CMakeLists.txt

-9
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ project(Classification_Examples)
77
# CGAL and its components
88
find_package(CGAL REQUIRED)
99

10-
# Boost and its components
11-
find_package(Boost REQUIRED)
12-
13-
if(NOT Boost_FOUND)
14-
message(
15-
STATUS "This project requires the Boost library, and will not be compiled.")
16-
return()
17-
endif()
18-
1910
set(Classification_dependencies_met TRUE)
2011

2112
find_package(Boost OPTIONAL_COMPONENTS serialization iostreams)

Classification/test/Classification/CMakeLists.txt

-9
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ project(Classification_Tests)
77
# CGAL and its components
88
find_package(CGAL REQUIRED)
99

10-
# Boost and its components
11-
find_package(Boost REQUIRED)
12-
13-
if(NOT Boost_FOUND)
14-
message(
15-
STATUS "This project requires the Boost library, and will not be compiled.")
16-
return()
17-
endif()
18-
1910
set(Classification_dependencies_met TRUE)
2011

2112
find_package(Boost OPTIONAL_COMPONENTS serialization iostreams)

Convex_hull_3/examples/Convex_hull_3/CMakeLists.txt

-20
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,13 @@ project(Convex_hull_3_Examples)
77
# CGAL and its components
88
find_package(CGAL REQUIRED)
99

10-
# Boost and its components
11-
find_package(Boost REQUIRED)
12-
13-
if(NOT Boost_FOUND)
14-
15-
message(
16-
STATUS "This project requires the Boost library, and will not be compiled.")
17-
18-
return()
19-
20-
endif()
21-
2210
find_package(OpenMesh QUIET)
2311

2412
if(OpenMesh_FOUND)
2513
include(UseOpenMesh)
2614
else()
2715
message(STATUS "Examples that use OpenMesh will not be compiled.")
2816
endif()
29-
30-
# include for local directory
31-
32-
# include for local package
33-
34-
# Creating entries for all C++ files with "main" routine
35-
# ##########################################################
36-
3717
create_single_source_cgal_program("quickhull_indexed_triangle_set_3.cpp")
3818
create_single_source_cgal_program("dynamic_hull_3.cpp")
3919
create_single_source_cgal_program("dynamic_hull_LCC_3.cpp")

Convex_hull_3/test/Convex_hull_3/CMakeLists.txt

-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ project(Convex_hull_3_Tests)
66

77
find_package(CGAL REQUIRED)
88

9-
find_package(OpenMesh QUIET)
10-
11-
if(OpenMesh_FOUND)
12-
include(UseOpenMesh)
13-
else()
14-
message(STATUS "Examples that use OpenMesh will not be compiled.")
15-
endif()
16-
179
include_directories(BEFORE "include")
1810

1911
# create a target per cppfile

Filtered_kernel/benchmark/Filtered_kernel/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ add_executable(bench_simple_comparisons bench_simple_comparisons.cpp)
88

99
find_package(CGAL REQUIRED COMPONENTS Core)
1010

11-
include(${CGAL_USE_FILE})
12-
1311
add_executable(bench_orientation_3 "orientation_3.cpp")
1412
target_link_libraries(bench_orientation_3 ${CGAL_LIBRARIES}
1513
${CGAL_3RD_PARTY_LIBRARIES})

Generalized_map/test/Generalized_map/CMakeLists.txt

-11
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@ project(Generalized_map_Tests)
77
# CGAL and its components
88
find_package(CGAL REQUIRED)
99

10-
# Boost and its components
11-
find_package(Boost REQUIRED)
12-
13-
if(NOT Boost_FOUND)
14-
15-
message(
16-
STATUS "This project requires the Boost library, and will not be compiled.")
17-
18-
return()
19-
20-
endif()
2110

2211
set(hfiles Generalized_map_2_test.h Generalized_map_3_test.h
2312
Generalized_map_4_test.h GMap_test_insertions.h)

GraphicsView/demo/Alpha_shapes_2/CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
2222
add_definitions(-DQT_NO_KEYWORDS)
2323
set(CMAKE_INCLUDE_CURRENT_DIR ON)
2424
set(CMAKE_AUTOMOC ON)
25-
#--------------------------------
26-
# The "Delaunay" demo: Alpha_shapes_2
27-
#--------------------------------
25+
2826
# UI files (Qt Designer files)
2927
qt5_wrap_ui(DT_UI_FILES Alpha_shapes_2.ui)
3028

GraphicsView/demo/Bounding_volumes/CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
2424
add_definitions(-DQT_NO_KEYWORDS)
2525
set(CMAKE_AUTOMOC ON)
2626

27-
#----------------------------------------------
28-
# The "Bounding volumes" demo: Bounding_volumes
29-
#----------------------------------------------
3027
# UI files (Qt Designer files)
3128
qt5_wrap_ui(DT_UI_FILES Bounding_volumes.ui)
3229

GraphicsView/demo/Circular_kernel_2/CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
2222
set(CMAKE_INCLUDE_CURRENT_DIR ON)
2323
set(CMAKE_AUTOMOC ON)
2424

25-
#--------------------------------
26-
# The demo: Circular_kernel_2
27-
#--------------------------------
2825
# UI files (Qt Designer files)
2926
qt5_wrap_ui(DT_UI_FILES Circular_kernel_2.ui)
3027

0 commit comments

Comments
 (0)