From ef58c66fe84de22ceba437c3900102ca8cffb0be Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Sun, 12 Aug 2007 14:34:59 +0000 Subject: Find Blitz svn path=/trunk/KDE/kdelibs/; revision=699271 --- modules/FindBlitz.cmake | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 modules/FindBlitz.cmake (limited to 'modules') 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, +# Copyright (c) 2007, Allen Winter, +# 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) + -- cgit v1.2.1