2009-01-04 23:26:32 +08:00
|
|
|
# - Try to find Eigen2 lib
|
2008-07-09 22:04:48 +08:00
|
|
|
# Once done this will define
|
|
|
|
#
|
2009-01-04 23:26:32 +08:00
|
|
|
# EIGEN2_FOUND - system has eigen lib
|
|
|
|
# EIGEN2_INCLUDE_DIR - the eigen include directory
|
|
|
|
|
2008-07-09 22:04:48 +08:00
|
|
|
# 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
|
2009-01-12 00:18:59 +08:00
|
|
|
PATH_SUFFIXES eigen2
|
|
|
|
HINTS
|
2008-07-09 22:04:48 +08:00
|
|
|
${INCLUDE_INSTALL_DIR}
|
2009-01-04 23:26:32 +08:00
|
|
|
${KDE4_INCLUDE_DIR}
|
2008-07-09 22:04:48 +08:00
|
|
|
)
|
|
|
|
|
2008-07-13 06:13:03 +08:00
|
|
|
include(FindPackageHandleStandardArgs)
|
2009-01-04 23:26:32 +08:00
|
|
|
find_package_handle_standard_args(Eigen2 DEFAULT_MSG EIGEN2_INCLUDE_DIR )
|
|
|
|
|
2008-07-13 06:13:03 +08:00
|
|
|
|
2008-07-09 22:04:48 +08:00
|
|
|
mark_as_advanced(EIGEN2_INCLUDE_DIR)
|
|
|
|
|
|
|
|
endif(EIGEN2_INCLUDE_DIR)
|
|
|
|
|