CONFIG options is only needed if a FindXXX.cmake exists

This commit is contained in:
Sébastien Loriot 2024-09-04 14:48:07 +02:00
parent b5fc288336
commit 4cf1f4b214
16 changed files with 16 additions and 16 deletions

View File

@ -7,7 +7,7 @@ project(BGL_OpenMesh_Examples)
# CGAL and its components # CGAL and its components
find_package(CGAL REQUIRED) find_package(CGAL REQUIRED)
find_package(OpenMesh CONFIG) find_package(OpenMesh)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
create_single_source_cgal_program("TriMesh.cpp") create_single_source_cgal_program("TriMesh.cpp")

View File

@ -16,7 +16,7 @@ create_single_source_cgal_program("range.cpp")
create_single_source_cgal_program("transform_iterator.cpp") create_single_source_cgal_program("transform_iterator.cpp")
create_single_source_cgal_program("copy_polyhedron.cpp") create_single_source_cgal_program("copy_polyhedron.cpp")
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
target_link_libraries(copy_polyhedron PRIVATE CGAL::OpenMesh_support) target_link_libraries(copy_polyhedron PRIVATE CGAL::OpenMesh_support)

View File

@ -40,7 +40,7 @@ create_single_source_cgal_program("bench_read_from_stream_vs_add_face_and_add_fa
create_single_source_cgal_program("graph_traits_inheritance.cpp" ) create_single_source_cgal_program("graph_traits_inheritance.cpp" )
create_single_source_cgal_program("test_deprecated_io.cpp") create_single_source_cgal_program("test_deprecated_io.cpp")
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)

View File

@ -27,7 +27,7 @@ cgal_add_compilation_test(Combinatorial_map_copy_test_index)
create_single_source_cgal_program(cmap_test_split_attribute.cpp) create_single_source_cgal_program(cmap_test_split_attribute.cpp)
# Link with OpenMesh if possible # Link with OpenMesh if possible
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
message(STATUS "Found OpenMesh") message(STATUS "Found OpenMesh")
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)

View File

@ -19,7 +19,7 @@ create_single_source_cgal_program("quickhull_any_dim_3.cpp")
create_single_source_cgal_program("extreme_points_3_sm.cpp") create_single_source_cgal_program("extreme_points_3_sm.cpp")
create_single_source_cgal_program("extreme_indices_3.cpp") create_single_source_cgal_program("extreme_indices_3.cpp")
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh") message(STATUS "Found OpenMesh")

View File

@ -18,7 +18,7 @@ include_directories(BEFORE "/usr/include/libxml2/")
# add_definitions("-g") # add_definitions("-g")
# OpenMesh # OpenMesh
find_package(OpenMesh CONFIG REQUIRED) find_package(OpenMesh REQUIRED)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
# Polyhedron # Polyhedron

View File

@ -93,7 +93,7 @@ else()
message(STATUS "NOTICE: Examples that use Eigen will not be compiled.") message(STATUS "NOTICE: Examples that use Eigen will not be compiled.")
endif() endif()
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)

View File

@ -112,7 +112,7 @@ else()
message(STATUS "NOTICE: Intel TBB was not found. Tests will use sequential code.") message(STATUS "NOTICE: Intel TBB was not found. Tests will use sequential code.")
endif() endif()
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
create_single_source_cgal_program("remeshing_test_P_SM_OM.cpp") create_single_source_cgal_program("remeshing_test_P_SM_OM.cpp")

View File

@ -10,7 +10,7 @@ create_single_source_cgal_program("dynamic_properties_test.cpp")
create_single_source_cgal_program("kernel_converter_properties_test.cpp") create_single_source_cgal_program("kernel_converter_properties_test.cpp")
create_single_source_cgal_program("test_Property_container.cpp") create_single_source_cgal_program("test_Property_container.cpp")
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
message(STATUS "Found OpenMesh") message(STATUS "Found OpenMesh")
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)

View File

@ -61,7 +61,7 @@ if(TARGET CGAL::TBB_support)
target_link_libraries(test_for_each PUBLIC CGAL::TBB_support) target_link_libraries(test_for_each PUBLIC CGAL::TBB_support)
endif() endif()
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
message(STATUS "Found OpenMesh") message(STATUS "Found OpenMesh")
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)

View File

@ -31,7 +31,7 @@ if(TARGET CGAL::Eigen3_support)
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support) target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
endforeach() endforeach()
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh") message(STATUS "Found OpenMesh")

View File

@ -16,7 +16,7 @@ if(TARGET CGAL::Eigen3_support)
create_single_source_cgal_program("Symmetry_test.cpp") create_single_source_cgal_program("Symmetry_test.cpp")
target_link_libraries(Symmetry_test PUBLIC CGAL::Eigen3_support) target_link_libraries(Symmetry_test PUBLIC CGAL::Eigen3_support)
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh") message(STATUS "Found OpenMesh")

View File

@ -15,7 +15,7 @@ create_single_source_cgal_program("segmentation_from_sdf_values_SM_example.cpp")
create_single_source_cgal_program("segmentation_from_sdf_values_LCC_example.cpp") create_single_source_cgal_program("segmentation_from_sdf_values_LCC_example.cpp")
create_single_source_cgal_program("extract_segmentation_into_mesh_example.cpp") create_single_source_cgal_program("extract_segmentation_into_mesh_example.cpp")
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh") message(STATUS "Found OpenMesh")

View File

@ -13,7 +13,7 @@ create_single_source_cgal_program("shortest_paths_with_id.cpp")
create_single_source_cgal_program("shortest_paths.cpp") create_single_source_cgal_program("shortest_paths.cpp")
create_single_source_cgal_program("shortest_path_with_locate.cpp") create_single_source_cgal_program("shortest_path_with_locate.cpp")
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh") message(STATUS "Found OpenMesh")

View File

@ -28,7 +28,7 @@ else()
message(STATUS "NOTICE: Garland-Heckbert polices require the Eigen library, which has not been found; related examples will not be compiled.") message(STATUS "NOTICE: Garland-Heckbert polices require the Eigen library, which has not been found; related examples will not be compiled.")
endif() endif()
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh") message(STATUS "Found OpenMesh")

View File

@ -29,7 +29,7 @@ if(TARGET CGAL::Eigen3_support)
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support) target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
endforeach() endforeach()
find_package(OpenMesh CONFIG QUIET) find_package(OpenMesh QUIET)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support) include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh") message(STATUS "Found OpenMesh")