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

/CMakeModules/FindCLuceneUnstable.cmake

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