PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/CMakeModules/FindCLuceneUnstable.cmake

Relevant Search: With Applications for Solr and Elasticsearch

For more in depth reading about search, ranking and generally everything you could ever want to know about how lucene, elasticsearch or solr work under the hood I highly suggest this book. Easily one of the most interesting technical books I have read in a long time. If you are tasked with solving search relevance problems even if not in Solr or Elasticsearch it should be your first reference. Amazon Affiliate Link
http://github.com/tomahawk-player/tomahawk
CMake | 37 lines | 18 code | 8 blank | 11 comment | 0 complexity | 0e8abba3134667f396f5a795ae26e1cf MD5 | raw file
 1# - Try to find clucene-unstable
 2#  This is a workaround for distros, that want to ship a recent enough clucene but don't want to replace the old version
 3#
 4#  CLUCENEUNSTABLE_FOUND - system has clucene-unstable
 5#  CLUCENE_UNSTABLE_INCLUDE_DIR - the clucene-unstable include directories
 6#  CLUCENE_UNSTABLE_LIBS - link these to use clucene-unstable
 7#
 8# (c) Dominik Schmidt <dev@dominik-schmidt.de>
 9#
10
11# Include dir
12find_path(CLUCENE_UNSTABLE_INCLUDE_DIR
13  NAMES CLucene.h
14  PATH_SUFFIXES clucene-unstable
15  PATHS ${KDE4_INCLUDE_DIR}
16)
17
18# Finally the library itself
19find_library(CLUCENE_UNSTABLE_SHARED_LIB
20  NAMES clucene-unstable-shared
21  PATHS ${KDE4_LIB_DIR}
22)
23
24find_library(CLUCENE_UNSTABLE_CORE_LIB
25  NAMES clucene-unstable-core
26  PATHS ${KDE4_LIB_DIR}
27)
28
29
30SET( CLUCENE_UNSTABLE_LIBS  ${CLUCENE_UNSTABLE_SHARED_LIB} ${CLUCENE_UNSTABLE_CORE_LIB} )
31SET( CLUCENE_UNSTABLE_INCLUDE_DIRS ${CLUCENE_UNSTABLE_INCLUDE_DIR})
32INCLUDE(FindPackageHandleStandardArgs)
33FIND_PACKAGE_HANDLE_STANDARD_ARGS(CLuceneUnstable DEFAULT_MSG CLUCENE_UNSTABLE_LIBS CLUCENE_UNSTABLE_INCLUDE_DIRS)
34
35
36MARK_AS_ADVANCED(CLUCENE_UNSTABLE_LIBS CLUCENE_UNSTABLE_INCLUDE_DIRS)
37