mariadb/cmake/FindJudy.cmake

34 lines
939 B
CMake
Raw Normal View History

2012-09-30 23:49:46 +02:00
# - Try to find Judy
# Once done this will define
#
2013-02-14 19:38:35 +01:00
# Judy_FOUND - system has Judy
# Judy_INCLUDE_DIR - the Judy include directory
# Judy_LIBRARIES - Link these to use Judy
# Judy_DEFINITIONS - Compiler switches required for using Judy
2012-09-30 23:49:46 +02:00
2013-02-14 19:38:35 +01:00
IF (Judy_INCLUDE_DIR AND Judy_LIBRARIES)
2012-09-30 23:49:46 +02:00
SET(Judy_FIND_QUIETLY TRUE)
2013-02-14 19:38:35 +01:00
ENDIF (Judy_INCLUDE_DIR AND Judy_LIBRARIES)
2012-09-30 23:49:46 +02:00
2013-02-14 19:38:35 +01:00
FIND_PATH(Judy_INCLUDE_DIR Judy.h)
FIND_LIBRARY(Judy_LIBRARIES NAMES Judy)
2012-09-30 23:49:46 +02:00
2013-02-14 19:38:35 +01:00
IF (Judy_INCLUDE_DIR AND Judy_LIBRARIES)
SET(Judy_FOUND TRUE)
ELSE (Judy_INCLUDE_DIR AND Judy_LIBRARIES)
SET(Judy_FOUND FALSE)
ENDIF (Judy_INCLUDE_DIR AND Judy_LIBRARIES)
2012-09-30 23:49:46 +02:00
IF (Judy_FOUND)
2012-09-30 23:49:46 +02:00
IF (NOT Judy_FIND_QUIETLY)
2013-02-14 19:38:35 +01:00
MESSAGE(STATUS "Found libjudy: ${Judy_LIBRARIES}")
2012-09-30 23:49:46 +02:00
ENDIF (NOT Judy_FIND_QUIETLY)
2013-02-14 19:38:35 +01:00
ELSE (Judy_FOUND)
2012-09-30 23:49:46 +02:00
IF (Judy_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could NOT find libjudy")
ENDIF (Judy_FIND_REQUIRED)
2013-02-14 19:38:35 +01:00
ENDIF (Judy_FOUND)
2012-09-30 23:49:46 +02:00
2013-02-14 19:38:35 +01:00
MARK_AS_ADVANCED(Judy_INCLUDE_DIR Judy_LIBRARIES)
2012-09-30 23:49:46 +02:00