mirror of https://github.com/CGAL/cgal
Merge pull request #5550 from maxGimeno/Eigen_fixes_in_cmakelists-5-2-maxGimeno
Fix Eigen in CMakeLists 5.2
This commit is contained in:
commit
53491eca02
|
|
@ -20,8 +20,12 @@ if(CGAL_ACTIVATE_CONCURRENT_MESH_3 OR ENV{CGAL_ACTIVATE_CONCURRENT_MESH_3})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Use Eigen
|
# Use Eigen
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
|
message( STATUS "NOTICE: All examples need the Eigen3 library, and will not be compiled." )
|
||||||
|
return()
|
||||||
|
endif() #CGAL::Eigen_3_support
|
||||||
|
|
||||||
find_package(VTK QUIET COMPONENTS vtkImagingGeneral vtkIOImage NO_MODULE)
|
find_package(VTK QUIET COMPONENTS vtkImagingGeneral vtkIOImage NO_MODULE)
|
||||||
if(VTK_FOUND)
|
if(VTK_FOUND)
|
||||||
|
|
|
||||||
|
|
@ -36,9 +36,14 @@ create_single_source_cgal_program( "tetrahedral_remeshing_example.cpp" )
|
||||||
create_single_source_cgal_program( "tetrahedral_remeshing_with_features.cpp")
|
create_single_source_cgal_program( "tetrahedral_remeshing_with_features.cpp")
|
||||||
create_single_source_cgal_program( "tetrahedral_remeshing_of_one_subdomain.cpp")
|
create_single_source_cgal_program( "tetrahedral_remeshing_of_one_subdomain.cpp")
|
||||||
create_single_source_cgal_program( "tetrahedral_remeshing_from_mesh.cpp")
|
create_single_source_cgal_program( "tetrahedral_remeshing_from_mesh.cpp")
|
||||||
|
|
||||||
|
if(TARGET CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program( "mesh_and_remesh_polyhedral_domain_with_features.cpp" )
|
create_single_source_cgal_program( "mesh_and_remesh_polyhedral_domain_with_features.cpp" )
|
||||||
target_link_libraries(mesh_and_remesh_polyhedral_domain_with_features PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(mesh_and_remesh_polyhedral_domain_with_features PUBLIC CGAL::Eigen3_support)
|
||||||
if(CGAL_ACTIVATE_CONCURRENT_MESH_3 AND TARGET CGAL::TBB_support)
|
if(CGAL_ACTIVATE_CONCURRENT_MESH_3 AND TARGET CGAL::TBB_support)
|
||||||
target_link_libraries(mesh_and_remesh_polyhedral_domain_with_features PRIVATE CGAL::TBB_support)
|
target_link_libraries(mesh_and_remesh_polyhedral_domain_with_features PRIVATE CGAL::TBB_support)
|
||||||
endif()
|
endif()
|
||||||
|
else()
|
||||||
|
message(STATUS "Some examples need the Eigen3 library, and will not be compiled.")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue