Include Eigen in CMakeLists.txt where needed
This commit is contained in:
@@ -39,6 +39,16 @@ find_package(TBB QUIET)
|
||||
|
||||
find_package(OpenCV QUIET)
|
||||
|
||||
# Use Eigen
|
||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||
if (NOT EIGEN3_FOUND)
|
||||
message(STATUS "This project requires the Eigen library, and will not be compiled.")
|
||||
return()
|
||||
else()
|
||||
include( ${EIGEN3_USE_FILE} )
|
||||
endif()
|
||||
|
||||
|
||||
# include for local directory
|
||||
include_directories( BEFORE include )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user