aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAllen Winter <winter@kde.org>2007-08-12 14:34:59 +0000
committerAllen Winter <winter@kde.org>2007-08-12 14:34:59 +0000
commitef58c66fe84de22ceba437c3900102ca8cffb0be (patch)
tree2fc1f69bfb8351f41a5e1ae746b0cb807c98ebd5 /modules
parent405bd044f07ebf785d977331c94df5ba23666290 (diff)
downloadextra-cmake-modules-ef58c66fe84de22ceba437c3900102ca8cffb0be.tar.gz
extra-cmake-modules-ef58c66fe84de22ceba437c3900102ca8cffb0be.tar.bz2
Find Blitz
svn path=/trunk/KDE/kdelibs/; revision=699271
Diffstat (limited to 'modules')
-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)
+