This commit is contained in:
Maxime Gimeno 2019-07-03 10:27:14 +02:00
parent d75842159b
commit 4cdfecc8c5
1 changed files with 24 additions and 16 deletions

View File

@ -35,9 +35,14 @@ include( CGAL_CreateSingleSourceCGALProgram )
create_single_source_cgal_program( "polygonal_surface_reconstruction_test.cpp" ) create_single_source_cgal_program( "polygonal_surface_reconstruction_test.cpp" )
find_package( SCIP QUIET) find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
if(EIGEN3_FOUND)
include( ${EIGEN3_USE_FILE} )
if (SCIP_FOUND) # Executables that require Eigen 3.1
find_package( SCIP QUIET)
if (SCIP_FOUND)
include_directories( BEFORE ${SCIP_INCLUDE_DIRS} ) include_directories( BEFORE ${SCIP_INCLUDE_DIRS} )
@ -47,10 +52,10 @@ if (SCIP_FOUND)
message("SCIP found and used") message("SCIP found and used")
endif() endif()
find_package( GLPK QUIET) find_package( GLPK QUIET)
if (GLPK_FOUND) if (GLPK_FOUND)
@ -62,12 +67,15 @@ find_package( GLPK QUIET)
message("GLPK found and used") message("GLPK found and used")
endif() endif()
if (NOT SCIP_FOUND AND NOT GLPK_FOUND) if (NOT SCIP_FOUND AND NOT GLPK_FOUND)
message(STATUS "NOTICE: This project requires either SCIP or GLPK, and will not be compiled. " message(STATUS "NOTICE: This project requires either SCIP or GLPK, and will not be compiled. "
"Please provide either 'SCIP_DIR' or 'GLPK_INCLUDE_DIR' and 'GLPK_LIBRARIES'") "Please provide either 'SCIP_DIR' or 'GLPK_INCLUDE_DIR' and 'GLPK_LIBRARIES'")
endif()
else()
message(STATUS "NOTICE: Some of the executables in this directory need Eigen 3.1 (or greater) and will not be compiled.")
endif() endif()