summaryrefslogtreecommitdiffstats
path: root/FindMhash.cmake
blob: 5326679ecc6ac6b3362dc441893b67333aa564a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)