diff options
author | Anonymous Maarten <anonymous.maarten@gmail.com> | 2020-09-16 18:29:23 (GMT) |
---|---|---|
committer | Anonymous Maarten <anonymous.maarten@gmail.com> | 2020-09-16 18:29:23 (GMT) |
commit | af3bb09cfeb60aeda554754f13a939d14e4bbd4e (patch) | |
tree | f70d82b270a76424b362a9b35b56dbca99c6ebd3 /cmake/Findxapian.cmake | |
parent | c1901d07755826803e92618e60d8af9720dbb1e7 (diff) | |
download | Doxygen-af3bb09cfeb60aeda554754f13a939d14e4bbd4e.zip Doxygen-af3bb09cfeb60aeda554754f13a939d14e4bbd4e.tar.gz Doxygen-af3bb09cfeb60aeda554754f13a939d14e4bbd4e.tar.bz2 |
Lowercase Findxapian module (same casing as upstream xapian-core)
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..33726cf --- /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) + |