xref: /aosp_15_r20/external/eigen/bench/btl/cmake/FindTvmet.cmake (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1# - Try to find tvmet headers
2# Once done this will define
3#
4#  TVMET_FOUND - system has tvmet lib
5#  TVMET_INCLUDE_DIR - the tvmet include directory
6#
7# Copyright (C) 2008 Gael Guennebaud <[email protected]>
8# Adapted from FindEigen.cmake:
9# Copyright (c) 2006, 2007 Montel Laurent, <[email protected]>
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
13if (TVMET_INCLUDE_DIR)
14
15  # in cache already
16  set(TVMET_FOUND TRUE)
17
18else ()
19
20find_path(TVMET_INCLUDE_DIR NAMES tvmet/tvmet.h
21     PATHS
22     ${TVMETDIR}/
23     ${INCLUDE_INSTALL_DIR}
24   )
25
26include(FindPackageHandleStandardArgs)
27find_package_handle_standard_args(Tvmet DEFAULT_MSG TVMET_INCLUDE_DIR)
28
29mark_as_advanced(TVMET_INCLUDE_DIR)
30
31endif()
32
33