Misc minor fixes

This commit is contained in:
Mael Rouxel-Labbé 2022-09-07 10:21:46 +02:00
parent 174fefaeb8
commit 01e072270f
3 changed files with 6 additions and 7 deletions

View File

@ -14,14 +14,14 @@ create_single_source_cgal_program("kruskal_with_stored_id.cpp")
create_single_source_cgal_program("normals.cpp")
create_single_source_cgal_program("range.cpp")
create_single_source_cgal_program("transform_iterator.cpp")
create_single_source_cgal_program("copy_polyhedron.cpp")
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
create_single_source_cgal_program("copy_polyhedron.cpp")
target_link_libraries(copy_polyhedron PRIVATE ${OPENMESH_LIBRARIES})
target_compile_definitions(copy_polyhedron PRIVATE -DCGAL_USE_OPENMESH)
else()
message(STATUS "NOTICE: The example 'copy_polyhedron' requires OpenMesh, and will not be compiled.")
message(STATUS "NOTICE: The example 'copy_polyhedron' will not use OpenMesh.")
endif()
find_package(METIS QUIET)

View File

@ -12,12 +12,12 @@ add_definitions("-std=c++1y")
# Polyhedron
add_executable(polyhedron_performance performance_2.h polyhedron_performance.h
polyhedron_performance.cpp)
target_link_libraries(polyhedron_performance ${CGAL_LIBRARIES})
target_link_libraries(polyhedron_performance PRIVATE ${CGAL_LIBRARIES})
# LCC_2
add_executable(lcc_performance_2 performance_2.h lcc_performance_2.h
lcc_performance_2.cpp)
target_link_libraries(lcc_performance_2 ${CGAL_LIBRARIES})
target_link_libraries(lcc_performance_2 PRIVATE ${CGAL_LIBRARIES})
# Surface_mesh
add_executable(
@ -29,7 +29,7 @@ add_executable(
performance_2 performance_2.cpp performance_2.h polyhedron_performance.h
surface_mesh_performance.h lcc_performance_2.h)
target_link_libraries(performance_2 ${CGAL_LIBRARIES})
target_link_libraries(performance_2 PRIVATE ${CGAL_LIBRARIES})
create_single_source_cgal_program("sm_sms.cpp")
create_single_source_cgal_program("poly_sms.cpp")

View File

@ -17,8 +17,7 @@ find_package(Eigen3 3.1.91) #(requires 3.1.91 or greater)
include(CGAL_Eigen3_support)
if(TARGET CGAL::Eigen3_support)
create_single_source_cgal_program("deform_mesh_for_botsch08_format.cpp")
target_link_libraries(deform_mesh_for_botsch08_format
PUBLIC CGAL::Eigen3_support)
target_link_libraries(deform_mesh_for_botsch08_format PUBLIC CGAL::Eigen3_support)
else()
message("NOTICE: This program requires requires Eigen 3.1.91 (or greater) or later and will not be compiled.")
endif()