diff options
author | Benoît Jacob <jacob.benoit.1@gmail.com> | 2008-08-18 15:04:57 +0000 |
---|---|---|
committer | Benoît Jacob <jacob.benoit.1@gmail.com> | 2008-08-18 15:04:57 +0000 |
commit | c1572b73f3af45b8ff8c78389c0e09435a72c270 (patch) | |
tree | 64e6c1dcac057e66f436f80a4b3e59b8ea005250 | |
parent | a0918790682dc06ac7a8dfd80cc3b3926f3d7675 (diff) | |
download | extra-cmake-modules-c1572b73f3af45b8ff8c78389c0e09435a72c270.tar.gz extra-cmake-modules-c1572b73f3af45b8ff8c78389c0e09435a72c270.tar.bz2 |
backport FindEigen2.cmake. Since some apps like KOffice depend currently on
4.1 libs, i've been told this was useful to backport.
svn path=/branches/KDE/4.1/kdelibs/; revision=848852
-rw-r--r-- | modules/FindEigen2.cmake | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/FindEigen2.cmake b/modules/FindEigen2.cmake new file mode 100644 index 00000000..924c69a0 --- /dev/null +++ b/modules/FindEigen2.cmake @@ -0,0 +1,30 @@ +# - Try to find Eigen2 lib +# Once done this will define +# +# EIGEN2_FOUND - system has eigen lib +# EIGEN2_INCLUDE_DIR - the eigen include directory + +# Copyright (c) 2006, 2007 Montel Laurent, <montel@kde.org> +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +if (EIGEN2_INCLUDE_DIR) + + # in cache already + set(EIGEN2_FOUND TRUE) + +else (EIGEN2_INCLUDE_DIR) + +find_path(EIGEN2_INCLUDE_DIR NAMES Eigen/Core + PATHS + ${INCLUDE_INSTALL_DIR}/eigen2 + ) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Eigen2 DEFAULT_MSG EIGEN2_INCLUDE_DIR ) + + +mark_as_advanced(EIGEN2_INCLUDE_DIR) + +endif(EIGEN2_INCLUDE_DIR) + |