use CGAL_Basic_viewer target

This commit is contained in:
Sébastien Loriot 2025-04-30 09:19:50 +02:00
parent 807806b1db
commit a9c8a49831
22 changed files with 73 additions and 73 deletions

View File

@ -16,15 +16,15 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_arr PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_arr PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(linear_conics PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(linear_conics PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(parabolas PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(parabolas PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(ellipses PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(ellipses PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(hyperbolas PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(hyperbolas PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(polylines PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(polylines PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(circles PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(circles PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(circular_arcs PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(circular_arcs PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(spherical_insert PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(spherical_insert PRIVATE CGAL::CGAL_Basic_viewer)
else() else()
message( message(
STATUS STATUS

View File

@ -23,12 +23,12 @@ create_single_source_cgal_program("draw_surface_mesh_vcolor.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
#link it with the required CGAL libraries #link it with the required CGAL libraries
target_link_libraries(draw_lcc PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_lcc PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(draw_mesh_and_points PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_mesh_and_points PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(draw_several_windows PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_several_windows PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(draw_surface_mesh_height PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_surface_mesh_height PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(draw_surface_mesh_small_faces PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_surface_mesh_small_faces PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(draw_surface_mesh_vcolor PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_surface_mesh_vcolor PRIVATE CGAL::CGAL_Basic_viewer)
else() else()
message("CGAL_Qt6 not configured: examples that require Qt will not be compiled.") message("CGAL_Qt6 not configured: examples that require Qt will not be compiled.")
endif() endif()

View File

@ -16,7 +16,7 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_polygon_set PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_polygon_set PRIVATE CGAL::CGAL_Basic_viewer)
else() else()
message(STATUS "NOTICE: The example 'draw_polygon_set' requires Qt and drawing will be disabled.") message(STATUS "NOTICE: The example 'draw_polygon_set' requires Qt and drawing will be disabled.")
endif() endif()

View File

@ -61,7 +61,7 @@ else()
add_to_cached_list(CGAL_EXECUTABLE_TARGETS Linear_cell_complex_3_demo) add_to_cached_list(CGAL_EXECUTABLE_TARGETS Linear_cell_complex_3_demo)
target_link_libraries(Linear_cell_complex_3_demo target_link_libraries(Linear_cell_complex_3_demo
PRIVATE CGAL::CGAL CGAL::CGAL_Qt6 Qt6::OpenGL) PRIVATE CGAL::CGAL CGAL::CGAL_Basic_viewer)
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake) include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
cgal_add_compilation_test(Linear_cell_complex_3_demo) cgal_add_compilation_test(Linear_cell_complex_3_demo)

View File

@ -30,7 +30,7 @@ create_single_source_cgal_program("voronoi_3.cpp")
create_single_source_cgal_program("draw_linear_cell_complex.cpp") create_single_source_cgal_program("draw_linear_cell_complex.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_linear_cell_complex PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_linear_cell_complex PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(linear_cell_complex_3_incremental_builder PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(linear_cell_complex_3_incremental_builder PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(linear_cell_complex_3_insert PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(linear_cell_complex_3_insert PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -13,6 +13,6 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(mesh_with_seeds PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(mesh_with_seeds PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(mesh_marked_domain PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(mesh_marked_domain PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -16,5 +16,5 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_nef_3 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_nef_3 PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -16,5 +16,5 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_periodic_2_triangulation_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_periodic_2_triangulation_2 PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -24,5 +24,5 @@ endif()
create_single_source_cgal_program("draw_point_set_3.cpp") create_single_source_cgal_program("draw_point_set_3.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_point_set_3 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_point_set_3 PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -16,8 +16,8 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_polygon PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_polygon PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(draw_polygon_with_holes PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_polygon_with_holes PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(draw_polygon_with_holes_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_polygon_with_holes_2 PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(draw_multipolygon_with_holes PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_multipolygon_with_holes PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -18,6 +18,6 @@ endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(repair_non_zero_polygon_2 PUBLIC CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(repair_non_zero_polygon_2 PUBLIC CGAL::CGAL_Basic_viewer)
target_link_libraries(repair_union_intersect_2 PUBLIC CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(repair_union_intersect_2 PUBLIC CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -20,6 +20,6 @@ create_single_source_cgal_program( "exact_test.cpp")
create_single_source_cgal_program( "repair_polygon_2_test.cpp" ) create_single_source_cgal_program( "repair_polygon_2_test.cpp" )
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_test_polygons PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_test_polygons PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(exact_test PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(exact_test PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -16,5 +16,5 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_polyhedron PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_polyhedron PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -15,12 +15,12 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_straight_skeleton_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_straight_skeleton_2 PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(exterior_offset_of_multiple_polygons_with_holes PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(exterior_offset_of_multiple_polygons_with_holes PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(Create_straight_skeleton_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(Create_straight_skeleton_2 PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(Show_offset_polygon PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(Show_offset_polygon PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(Show_straight_skeleton PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(Show_straight_skeleton PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(extrude_skeleton PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(extrude_skeleton PRIVATE CGAL::CGAL_Basic_viewer)
else() else()
message(STATUS "NOTICE: The example 'draw_straight_skeleton_2' requires Qt and will not be compiled.") message(STATUS "NOTICE: The example 'draw_straight_skeleton_2' requires Qt and will not be compiled.")
endif() endif()

View File

@ -17,8 +17,8 @@ create_single_source_cgal_program("test_sls_traits.cpp")
create_single_source_cgal_program("test_straight_skeleton_copy.cpp") create_single_source_cgal_program("test_straight_skeleton_copy.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(issue4684 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(issue4684 PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(test_sls_previous_issues PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(test_sls_previous_issues PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()
if (CGAL_Core_FOUND OR LEDA_FOUND) if (CGAL_Core_FOUND OR LEDA_FOUND)
@ -30,11 +30,11 @@ if (CGAL_Core_FOUND OR LEDA_FOUND)
create_single_source_cgal_program("test_sls_weighted_polygons.cpp") create_single_source_cgal_program("test_sls_weighted_polygons.cpp")
create_single_source_cgal_program("test_sls_weighted_polygons_with_holes.cpp") create_single_source_cgal_program("test_sls_weighted_polygons_with_holes.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(issue7149 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(issue7149 PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(issue7284 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(issue7284 PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(test_sls_offset PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(test_sls_offset PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(test_sls_weighted_offset PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(test_sls_weighted_offset PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(test_sls_weighted_polygons PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(test_sls_weighted_polygons PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(test_sls_weighted_polygons_with_holes PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(test_sls_weighted_polygons_with_holes PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()
endif() endif()

View File

@ -12,7 +12,7 @@ include_directories(BEFORE "include")
if (CGAL_Core_FOUND OR LEDA_FOUND) if (CGAL_Core_FOUND OR LEDA_FOUND)
create_single_source_cgal_program("test_sls_extrude.cpp") create_single_source_cgal_program("test_sls_extrude.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(test_sls_extrude PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(test_sls_extrude PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()
else() else()
message("NOTICE: Tests require CGAL_Core (or LEDA), and will not be compiled.") message("NOTICE: Tests require CGAL_Core (or LEDA), and will not be compiled.")

View File

@ -30,7 +30,7 @@ create_single_source_cgal_program("draw_surface_mesh.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
#link it with the required CGAL libraries #link it with the required CGAL libraries
target_link_libraries(draw_surface_mesh PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_surface_mesh PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -32,17 +32,17 @@ foreach(cppfile ${SOURCE_FILES})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(edgewidth_lcc PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(edgewidth_lcc PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(edgewidth_surface_mesh PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(edgewidth_surface_mesh PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(facewidth PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(facewidth PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(open_path_homotopy PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(open_path_homotopy PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(path_homotopy PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(path_homotopy PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(path_homotopy_double_torus PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(path_homotopy_double_torus PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(path_homotopy_torus PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(path_homotopy_torus PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(path_homotopy_with_sm_and_polyhedron PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(path_homotopy_with_sm_and_polyhedron PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(path_simplicity_double_torus PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(path_simplicity_double_torus PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(path_simplicity_double_torus_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(path_simplicity_double_torus_2 PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(shortest_noncontractible_cycle_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(shortest_noncontractible_cycle_2 PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(shortest_noncontractible_cycle PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(shortest_noncontractible_cycle PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(unsew_edgewidth_repeatedly PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(unsew_edgewidth_repeatedly PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -34,8 +34,8 @@ foreach(cppfile ${SOURCE_FILES})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(fundamental_group_of_the_circle PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(fundamental_group_of_the_circle PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(fundamental_group_of_the_torus PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(fundamental_group_of_the_torus PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(path_with_rle_deformation_tests PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(path_with_rle_deformation_tests PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(test_homotopy PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(test_homotopy PRIVATE CGAL::CGAL_Basic_viewer)
endif() endif()

View File

@ -16,10 +16,10 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(constrained PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(constrained PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(draw_triangulation_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_triangulation_2 PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(polygon_triangulation PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(polygon_triangulation PRIVATE CGAL::CGAL_Basic_viewer)
target_link_libraries(star_conflict_zone PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(star_conflict_zone PRIVATE CGAL::CGAL_Basic_viewer)
else() else()
message(STATUS "NOTICE: Several examples require Qt6 and will not be compiled.") message(STATUS "NOTICE: Several examples require Qt6 and will not be compiled.")
endif() endif()

View File

@ -22,7 +22,7 @@ create_single_source_cgal_program("simplex.cpp")
create_single_source_cgal_program("draw_triangulation_3.cpp") create_single_source_cgal_program("draw_triangulation_3.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_triangulation_3 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_triangulation_3 PRIVATE CGAL::CGAL_Basic_viewer)
else() else()
message(STATUS "NOTICE: The example 'draw_triangulation_3' requires Qt6, and will not be compiled.") message(STATUS "NOTICE: The example 'draw_triangulation_3' requires Qt6, and will not be compiled.")
endif() endif()

View File

@ -16,7 +16,7 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_voronoi_diagram_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt) target_link_libraries(draw_voronoi_diagram_2 PRIVATE CGAL::CGAL_Basic_viewer)
else() else()
message(STATUS "NOTICE: The Qt6 library was not found. The example 'draw_voronoi_diagram_2' will not be compiled.") message(STATUS "NOTICE: The Qt6 library was not found. The example 'draw_voronoi_diagram_2' will not be compiled.")
endif() endif()