Add Eigen dependency in CMakeLists of demos that need it

This commit is contained in:
Simon Giraudot 2018-06-19 10:54:34 +02:00
parent 80142e0569
commit 06c0835a3b
3 changed files with 24 additions and 0 deletions

View File

@ -25,6 +25,14 @@ find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND )
include( ${CGAL_USE_FILE} )
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
if (EIGEN3_FOUND)
include( ${EIGEN3_USE_FILE} )
else()
message(STATUS "NOTICE: This project requires the Eigen library, and will not be compiled.")
return()
endif()
find_package(IPE 6)
if ( IPE_FOUND )

View File

@ -13,6 +13,14 @@ find_package(CGAL COMPONENTS Qt5 Core)
include(${CGAL_USE_FILE})
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
if (EIGEN3_FOUND)
include( ${EIGEN3_USE_FILE} )
else()
message(STATUS "NOTICE: This project requires the Eigen library, and will not be compiled.")
return()
endif()
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
include_directories (BEFORE ../../include)

View File

@ -20,6 +20,14 @@ include_directories( ./ )
find_package(CGAL COMPONENTS Qt5)
include( ${CGAL_USE_FILE} )
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
if (EIGEN3_FOUND)
include( ${EIGEN3_USE_FILE} )
else()
message(STATUS "NOTICE: This project requires the Eigen library, and will not be compiled.")
return()
endif()
# Find Qt5 itself
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL)