aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/btl/cmake/FindGOTO.cmake
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-07-28 20:48:21 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-07-28 20:48:21 +0000
commite0215ee5101ad0d656509902bdb46ab61551865e (patch)
treee0b6a05f2c5eabd36eae5a5bcae2cad8315b0e92 /bench/btl/cmake/FindGOTO.cmake
parent44d95e0540f52643bb4751b75edcca4b6d0cc07a (diff)
BTL: - added tridiagonalization and hessenberg decomposition bench
- added GOTO library
Diffstat (limited to 'bench/btl/cmake/FindGOTO.cmake')
-rw-r--r--bench/btl/cmake/FindGOTO.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/bench/btl/cmake/FindGOTO.cmake b/bench/btl/cmake/FindGOTO.cmake
new file mode 100644
index 000000000..b2b648b14
--- /dev/null
+++ b/bench/btl/cmake/FindGOTO.cmake
@@ -0,0 +1,22 @@
+# include(FindLibraryWithDebug)
+
+if (GOTO_INCLUDES AND GOTO_LIBRARIES)
+ set(GOTO_FIND_QUIETLY TRUE)
+endif (GOTO_INCLUDES AND GOTO_LIBRARIES)
+
+find_path(GOTO_INCLUDES
+ NAMES
+ cblas.h
+ PATHS
+ $ENV{GOTODIR}/include
+ ${INCLUDE_INSTALL_DIR}
+)
+
+find_file(GOTO_LIBRARIES libgotoblas.so PATHS /usr/lib $ENV{GOTODIR} ${LIB_INSTALL_DIR})
+find_library(GOTO_LIBRARIES gotoblas PATHS $ENV{GOTODIR} ${LIB_INSTALL_DIR})
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(GOTO DEFAULT_MSG
+ GOTO_INCLUDES GOTO_LIBRARIES)
+
+mark_as_advanced(GOTO_INCLUDES GOTO_LIBRARIES)