Skip to content

Commit

Permalink
Merge pull request #5041 from sloriot/PMP-ceres_eigen
Browse files Browse the repository at this point in the history
Ceres requires Eigen
  • Loading branch information
lrineau committed Oct 9, 2020
2 parents f33e1d2 + d35543e commit dda9cb6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ if(OpenMesh_FOUND)
endif()

find_package(Ceres QUIET)
if(TARGET ceres)
if(TARGET ceres AND TARGET CGAL::Eigen_support)
target_compile_definitions( test_mesh_smoothing PRIVATE CGAL_PMP_USE_CERES_SOLVER )
target_link_libraries( test_mesh_smoothing PRIVATE ceres )
target_link_libraries( test_mesh_smoothing PUBLIC CGAL::Eigen_support PRIVATE ceres )

# target_compile_definitions( test_pmp_repair_self_intersections PRIVATE CGAL_PMP_USE_CERES_SOLVER )
# target_link_libraries( test_pmp_repair_self_intersections PRIVATE ceres )
endif(TARGET ceres)
endif(TARGET ceres AND TARGET CGAL::Eigen_support)

if(BUILD_TESTING)
set_tests_properties(
Expand Down

0 comments on commit dda9cb6

Please sign in to comment.