aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/btl/cmake/FindTvmet.cmake
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-07-10 18:28:50 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-07-10 18:28:50 +0000
commit6f71ef8277405d268032f7c3bcaf316c7422c133 (patch)
tree419a7d46b9db1a64a6e94756ca70d1801196b061 /bench/btl/cmake/FindTvmet.cmake
parent2b53fd4d53c87d41e26e4f178431f904ca2a42cd (diff)
resurrected tvmet, added mt4, intel's MKL and handcoded vectorized backends
in the benchmark suite
Diffstat (limited to 'bench/btl/cmake/FindTvmet.cmake')
-rw-r--r--bench/btl/cmake/FindTvmet.cmake32
1 files changed, 32 insertions, 0 deletions
diff --git a/bench/btl/cmake/FindTvmet.cmake b/bench/btl/cmake/FindTvmet.cmake
new file mode 100644
index 000000000..d0704dbbe
--- /dev/null
+++ b/bench/btl/cmake/FindTvmet.cmake
@@ -0,0 +1,32 @@
+# - Try to find tvmet headers
+# Once done this will define
+#
+# TVMET_FOUND - system has tvmet lib
+# TVMET_INCLUDE_DIR - the tvmet include directory
+#
+# Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr>
+# Adapted from FindEigen.cmake:
+# 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 (TVMET_INCLUDE_DIR)
+
+ # in cache already
+ set(TVMET_FOUND TRUE)
+
+else (TVMET_INCLUDE_DIR)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Tvmet DEFAULT_MSG TVMET_INCLUDE_DIR)
+
+find_path(TVMET_INCLUDE_DIR NAMES tvmet/tvmet.h
+ PATHS
+ ${TVMETDIR}/
+ ${INCLUDE_INSTALL_DIR}
+ )
+
+mark_as_advanced(TVMET_INCLUDE_DIR)
+
+endif(TVMET_INCLUDE_DIR)
+