use CGAL::OpenMesh_support

This commit is contained in:
Jane Tournois 2024-09-05 17:13:43 +02:00
parent 4324445fcb
commit 07fac94de2
1 changed files with 2 additions and 2 deletions

View File

@ -45,10 +45,10 @@ target_link_libraries(lcc_io_plugin PUBLIC scene_lcc_item)
find_package(OpenMesh) find_package(OpenMesh)
if(OpenMesh_FOUND) if(OpenMesh_FOUND)
include(UseOpenMesh) include(CGAL_OpenMesh_support)
cgal_lab_plugin(om_plugin OM_io_plugin KEYWORDS Viewer PMP) cgal_lab_plugin(om_plugin OM_io_plugin KEYWORDS Viewer PMP)
target_link_libraries(om_plugin PUBLIC scene_surface_mesh_item scene_polygon_soup_item scene_selection_item) target_link_libraries(om_plugin PUBLIC scene_surface_mesh_item scene_polygon_soup_item scene_selection_item)
target_link_libraries(om_plugin PRIVATE ${OPENMESH_LIBRARIES}) target_link_libraries(om_plugin PRIVATE CGAL::OpenMesh_support)
else() else()
message(STATUS "NOTICE: the OM IO plugin needs OpenMesh libraries and will not be compiled.") message(STATUS "NOTICE: the OM IO plugin needs OpenMesh libraries and will not be compiled.")
endif() endif()