aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-19 12:31:11 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-19 12:31:11 -0500
commitbbf0eb35a769b3b644ac62d65601f7b3044baacd (patch)
tree70fbd38b52a12d129fa9f3ba5f041000da127e5d /Eigen
parentb5f4636d42eb8b8e2383c0fbe357dca8fa1d357e (diff)
* in Eigen/CMakeLists.txt, finally do a globbing to we no longer will have problems with "oops forgot to install new module".
* add a file Eigen/signature_of_eigen3_matrix_library, use it to make FindEigen3.cmake more solid: able to find Eigen in either eigen3/ or eigen/ and not mix it up with Eigen2.
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/CMakeLists.txt9
-rw-r--r--Eigen/signature_of_eigen3_matrix_library1
2 files changed, 8 insertions, 2 deletions
diff --git a/Eigen/CMakeLists.txt b/Eigen/CMakeLists.txt
index e0eb837a5..321b2978e 100644
--- a/Eigen/CMakeLists.txt
+++ b/Eigen/CMakeLists.txt
@@ -1,7 +1,12 @@
-set(Eigen_HEADERS Core LU Cholesky QR Geometry Sparse Array SVD LeastSquares QtAlignedMalloc StdVector Householder Jacobi Eigenvalues)
+file(GLOB Eigen_directory_files "*")
+foreach(f ${Eigen_directory_files})
+ if(NOT(f MATCHES ".txt") AND NOT (f MATCHES "src"))
+ list(APPEND Eigen_directory_files_to_install ${f})
+ endif()
+endforeach(f ${Eigen_directory_files})
install(FILES
- ${Eigen_HEADERS}
+ ${Eigen_directory_files_to_install}
DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel
)
diff --git a/Eigen/signature_of_eigen3_matrix_library b/Eigen/signature_of_eigen3_matrix_library
new file mode 100644
index 000000000..477732ef4
--- /dev/null
+++ b/Eigen/signature_of_eigen3_matrix_library
@@ -0,0 +1 @@
+This file is just there as a signature to help identify directories containing Eigen3. When writing for a script looking for Eigen3, just look for this file. This is especially useful to help disambiguate with Eigen2...