mariadb/cmake/FindJudy.cmake

34 lines
933 B
CMake
Raw Normal View History

2012-09-30 14:49:46 -07:00
# - Try to find Judy
# Once done this will define
#
2013-02-14 10:38:35 -08: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 14:49:46 -07:00
2013-02-14 10:38:35 -08:00
IF (Judy_INCLUDE_DIR AND Judy_LIBRARIES)
2012-09-30 14:49:46 -07:00
SET(Judy_FIND_QUIETLY TRUE)
2013-02-14 10:38:35 -08:00
ENDIF (Judy_INCLUDE_DIR AND Judy_LIBRARIES)
2012-09-30 14:49:46 -07:00
2013-02-14 10:38:35 -08:00
FIND_PATH(Judy_INCLUDE_DIR Judy.h)
FIND_LIBRARY(Judy_LIBRARIES NAMES Judy)
2012-09-30 14:49:46 -07:00
2013-02-14 10:38:35 -08: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 14:49:46 -07:00
2013-02-14 10:38:35 -08:00
IF (Judy)
2012-09-30 14:49:46 -07:00
IF (NOT Judy_FIND_QUIETLY)
2013-02-14 10:38:35 -08:00
MESSAGE(STATUS "Found libjudy: ${Judy_LIBRARIES}")
2012-09-30 14:49:46 -07:00
ENDIF (NOT Judy_FIND_QUIETLY)
2013-02-14 10:38:35 -08:00
ELSE (Judy_FOUND)
2012-09-30 14:49:46 -07:00
IF (Judy_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could NOT find libjudy")
ENDIF (Judy_FIND_REQUIRED)
2013-02-14 10:38:35 -08:00
ENDIF (Judy_FOUND)
2012-09-30 14:49:46 -07:00
2013-02-14 10:38:35 -08:00
MARK_AS_ADVANCED(Judy_INCLUDE_DIR Judy_LIBRARIES)
2012-09-30 14:49:46 -07:00