diff options
author | cjamin <cjamin@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-07-06 14:42:58 +0000 |
---|---|---|
committer | cjamin <cjamin@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-07-06 14:42:58 +0000 |
commit | 85ab3ce5b0e6d1cb066d8ca526e9fe532fe75f4f (patch) | |
tree | 876c2c7af8efb8d47764362c938fa57a21428fe4 /src/Spatial_searching | |
parent | 30e801f3916d62084e92828f480a0531c7995383 (diff) |
Missing find_package
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/subsampling_and_spatialsearching@1383 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 04b500ba8cb7c4ade9f0b7378bc39ee8a558b260
Diffstat (limited to 'src/Spatial_searching')
-rw-r--r-- | src/Spatial_searching/example/CMakeLists.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Spatial_searching/example/CMakeLists.txt b/src/Spatial_searching/example/CMakeLists.txt index 0846c232..c1190d1b 100644 --- a/src/Spatial_searching/example/CMakeLists.txt +++ b/src/Spatial_searching/example/CMakeLists.txt @@ -5,11 +5,16 @@ if(CGAL_FOUND) if (NOT CGAL_VERSION VERSION_LESS 4.8.0) message(STATUS "CGAL version: ${CGAL_VERSION}.") - message(STATUS "Eigen3 version: ${EIGEN3_VERSION}.") - include( ${EIGEN3_USE_FILE} ) - include_directories (BEFORE "../../include") + find_package(Eigen3 3.1.0) + if (EIGEN3_FOUND) + message(STATUS "Eigen3 version: ${EIGEN3_VERSION}.") + include( ${EIGEN3_USE_FILE} ) + include_directories (BEFORE "../../include") - add_executable( Spatial_searching_example_spatial_searching example_spatial_searching.cpp ) + add_executable( Spatial_searching_example_spatial_searching example_spatial_searching.cpp ) + else() + message(WARNING "Eigen3 not found. Version 3.1.0 is required for the Tangential_complex examples.") + endif() else() message(WARNING "CGAL version: ${CGAL_VERSION} is too old to compile Spatial_searching examples. Version 4.8.0 is required.") endif () |