mirror of https://github.com/CGAL/cgal
Fix deprecation warnings by using Eigen
This commit is contained in:
parent
4cdfecc8c5
commit
a3e012316c
|
|
@ -40,10 +40,13 @@ create_single_source_cgal_program( "polyfit_example_without_input_planes.cpp" )
|
||||||
create_single_source_cgal_program( "polyfit_example_user_provided_planes.cpp" )
|
create_single_source_cgal_program( "polyfit_example_user_provided_planes.cpp" )
|
||||||
create_single_source_cgal_program( "polyfit_example_model_complexty_control.cpp" )
|
create_single_source_cgal_program( "polyfit_example_model_complexty_control.cpp" )
|
||||||
|
|
||||||
|
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||||
|
if(EIGEN3_FOUND)
|
||||||
|
include( ${EIGEN3_USE_FILE} )
|
||||||
|
|
||||||
find_package( SCIP QUIET)
|
find_package( SCIP QUIET)
|
||||||
|
|
||||||
if ( NOT SCIP_FOUND )
|
if ( NOT SCIP_FOUND )
|
||||||
find_package( GLPK QUIET)
|
find_package( GLPK QUIET)
|
||||||
|
|
||||||
if ( NOT GLPK_FOUND )
|
if ( NOT GLPK_FOUND )
|
||||||
|
|
@ -65,7 +68,7 @@ if ( NOT SCIP_FOUND )
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
include_directories( BEFORE ${SCIP_INCLUDE_DIRS} )
|
include_directories( BEFORE ${SCIP_INCLUDE_DIRS} )
|
||||||
|
|
||||||
|
|
@ -78,5 +81,8 @@ else()
|
||||||
|
|
||||||
message("SCIP found and used")
|
message("SCIP found and used")
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
else()
|
||||||
|
message(STATUS "NOTICE: Some of the executables in this directory need Eigen 3.1 (or greater) and will not be compiled.")
|
||||||
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue