Home | History | Annotate | Download | only in cmake
      1 # - Try to find eigen2 headers
      2 # Once done this will define
      3 #
      4 #  MTL4_FOUND - system has eigen2 lib
      5 #  MTL4_INCLUDE_DIR - the eigen2 include directory
      6 #
      7 # Copyright (C) 2008 Gael Guennebaud <gael.guennebaud (a] inria.fr>
      8 # Adapted from FindEigen.cmake:
      9 # Copyright (c) 2006, 2007 Montel Laurent, <montel (a] kde.org>
     10 # Redistribution and use is allowed according to the terms of the BSD license.
     11 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
     12 
     13 if (MTL4_INCLUDE_DIR)
     14 
     15   # in cache already
     16   set(MTL4_FOUND TRUE)
     17 
     18 else (MTL4_INCLUDE_DIR)
     19 
     20 find_path(MTL4_INCLUDE_DIR NAMES boost/numeric/mtl/mtl.hpp
     21      PATHS
     22      ${INCLUDE_INSTALL_DIR}
     23    )
     24 
     25 include(FindPackageHandleStandardArgs)
     26 find_package_handle_standard_args(MTL4 DEFAULT_MSG MTL4_INCLUDE_DIR)
     27 
     28 mark_as_advanced(MTL4_INCLUDE_DIR)
     29 
     30 endif(MTL4_INCLUDE_DIR)
     31 
     32