From 2275f98d7bd90c12a4bd324ada21a15ec0ffec69 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 19 Nov 2009 12:41:28 -0500 Subject: move signature file to root directory, where it belongs --- CMakeLists.txt | 5 +++++ Eigen/signature_of_eigen3_matrix_library | 1 - cmake/FindEigen3.cmake | 2 +- signature_of_eigen3_matrix_library | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 Eigen/signature_of_eigen3_matrix_library create mode 100644 signature_of_eigen3_matrix_library diff --git a/CMakeLists.txt b/CMakeLists.txt index 62d292c02..8932fff2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,6 +122,11 @@ set(INCLUDE_INSTALL_DIR "The directory where we install the header files" ) +install(FILES + signature_of_eigen3_matrix_library + DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel + ) + if(EIGEN_BUILD_PKGCONFIG) configure_file(eigen3.pc.in eigen3.pc) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/eigen3.pc diff --git a/Eigen/signature_of_eigen3_matrix_library b/Eigen/signature_of_eigen3_matrix_library deleted file mode 100644 index 477732ef4..000000000 --- a/Eigen/signature_of_eigen3_matrix_library +++ /dev/null @@ -1 +0,0 @@ -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... diff --git a/cmake/FindEigen3.cmake b/cmake/FindEigen3.cmake index 1d7dbb43d..2c4bb0462 100644 --- a/cmake/FindEigen3.cmake +++ b/cmake/FindEigen3.cmake @@ -60,7 +60,7 @@ if (EIGEN3_INCLUDE_DIR) else (EIGEN3_INCLUDE_DIR) - find_path(EIGEN3_INCLUDE_DIR NAMES Eigen/signature_of_eigen3_matrix_library + find_path(EIGEN3_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library PATHS ${CMAKE_INSTALL_PREFIX}/include ${KDE4_INCLUDE_DIR} diff --git a/signature_of_eigen3_matrix_library b/signature_of_eigen3_matrix_library new file mode 100644 index 000000000..477732ef4 --- /dev/null +++ b/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... -- cgit v1.2.3