aboutsummaryrefslogtreecommitdiff
path: root/modules/FindBlitz.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindBlitz.cmake')
-rw-r--r--modules/FindBlitz.cmake41
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/FindBlitz.cmake b/modules/FindBlitz.cmake
new file mode 100644
index 00000000..ed3e0989
--- /dev/null
+++ b/modules/FindBlitz.cmake
@@ -0,0 +1,41 @@
+# - Try to find blitz lib
+# Once done this will define
+#
+# BLITZ_FOUND - system has blitz lib
+# BLITZ_INCLUDE_DIR - the blitz include directory
+#
+# Copyright (c) 2006, Montel Laurent, <montel@kde.org>
+# Copyright (c) 2007, Allen Winter, <winter@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 (BLITZ_INCLUDE_DIR)
+
+ # in cache already
+ set(BLITZ_FOUND TRUE)
+
+else (BLITZ_INCLUDE_DIR)
+
+find_path(BLITZ_INCLUDE_DIR NAMES blitz.h
+ PATHS
+ ${INCLUDE_INSTALL_DIR}
+ )
+
+if(BLITZ_INCLUDE_DIR)
+ set(BLITZ_FOUND TRUE)
+endif(BLITZ_INCLUDE_DIR)
+
+if(BLITZ_FOUND)
+ if(NOT Blitz_FIND_QUIETLY)
+ message(STATUS "Found Blitz: ${BLITZ_INCLUDE_DIR}")
+ endif(NOT Blitz_FIND_QUIETLY)
+else(BLITZ_FOUND)
+ if(Blitz_FIND_REQUIRED)
+ message(FATAL_ERROR "Could NOT find Blitz")
+ endif(Blitz_FIND_REQUIRED)
+endif(BLITZ_FOUND)
+
+mark_as_advanced(BLITZ_INCLUDE_DIR)
+
+endif(BLITZ_INCLUDE_DIR)
+