From 84a5ceeb7db03d75425d72e8a23a0bb0f267bc01 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 24 Aug 2009 03:06:32 +0200 Subject: =?UTF-8?q?Hash-Klasse=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FindMhash.cmake | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 FindMhash.cmake (limited to 'FindMhash.cmake') diff --git a/FindMhash.cmake b/FindMhash.cmake new file mode 100644 index 0000000..5326679 --- /dev/null +++ b/FindMhash.cmake @@ -0,0 +1,16 @@ +FIND_PATH(MHASH_INCLUDE_DIR mhash.h) +FIND_LIBRARY(MHASH_LIBRARY NAMES mhash) + +IF (MHASH_INCLUDE_DIR AND MHASH_LIBRARY) + SET(MHASH_FOUND TRUE) +ENDIF (MHASH_INCLUDE_DIR AND MHASH_LIBRARY) + +IF (MHASH_FOUND) + IF (NOT Mhash_FIND_QUIETLY) + MESSAGE(STATUS "Found Mhash: ${MHASH_LIBRARY}") + ENDIF (NOT Mhash_FIND_QUIETLY) +ELSE (MHASH_FOUND) + IF (Mhash_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could not find Mhash") + ENDIF (Mhash_FIND_REQUIRED) +ENDIF (MHASH_FOUND) -- cgit v1.2.3