diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-05-31 11:28:55 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-05-31 11:28:55 (GMT) |
commit | 39228176c052fd293382dc9bc9b4b69b2a6af277 (patch) | |
tree | e26792a32babb5199b1f136d2188d179c318bd96 /cmake/FindXapian.cmake | |
parent | 635d8cf30e702bdf83fe5c96452f8f863d57bdee (diff) | |
download | Doxygen-39228176c052fd293382dc9bc9b4b69b2a6af277.zip Doxygen-39228176c052fd293382dc9bc9b4b69b2a6af277.tar.gz Doxygen-39228176c052fd293382dc9bc9b4b69b2a6af277.tar.bz2 |
Added missing files and build instructions
Diffstat (limited to 'cmake/FindXapian.cmake')
-rw-r--r-- | cmake/FindXapian.cmake | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/cmake/FindXapian.cmake b/cmake/FindXapian.cmake new file mode 100644 index 0000000..6109d7f --- /dev/null +++ b/cmake/FindXapian.cmake @@ -0,0 +1,42 @@ +# Find Xapian search engine library +# +# XAPIAN_FOUND - system has Xapian +# XAPIAN_INCLUDE_DIR - the Xapian include directory +# XAPIAN_LIBRARIES - the libraries needed to use Xapian +# +# Copyright © 2010 Harald Sitter <apachelogger@ubuntu.com> +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +if(XAPIAN_INCLUDE_DIR AND XAPIAN_LIBRARIES) + # Already in cache, be silent + set(Xapian_FIND_QUIETLY TRUE) +endif(XAPIAN_INCLUDE_DIR AND XAPIAN_LIBRARIES) + +FIND_PATH(XAPIAN_INCLUDE_DIR xapian/version.h) + +FIND_LIBRARY(XAPIAN_LIBRARIES NAMES xapian) + +IF(XAPIAN_INCLUDE_DIR AND XAPIAN_LIBRARIES) + SET(XAPIAN_FOUND TRUE) +ELSE(XAPIAN_INCLUDE_DIR AND XAPIAN_LIBRARIES) + SET(XAPIAN_FOUND FALSE) +ENDIF(XAPIAN_INCLUDE_DIR AND XAPIAN_LIBRARIES) + +IF(XAPIAN_FOUND) + IF(NOT Xapian_FIND_QUIETLY) + MESSAGE(STATUS "Found Xapian: ${XAPIAN_LIBRARIES}") + ENDIF(NOT Xapian_FIND_QUIETLY) +ELSE(XAPIAN_FOUND) + IF(Xapian_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could not find Xapian") + ENDIF(Xapian_FIND_REQUIRED) + IF(NOT Xapian_FIND_QUIETLY) + MESSAGE(STATUS "Could not find Xapian") + ENDIF(NOT Xapian_FIND_QUIETLY) +ENDIF(XAPIAN_FOUND) + +# show the XAPIAN_INCLUDE_DIR and XAPIAN_LIBRARIES variables only in the advanced view +MARK_AS_ADVANCED(XAPIAN_INCLUDE_DIR XAPIAN_LIBRARIES) + |