diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:43:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:43:50 +0000 |
commit | ceea23677c61f20759ae986bd77b0d5c4d673edb (patch) | |
tree | 3fcec1702eaf9c14d1dd736e594f5df08dab4001 /cmakemodules/FindStrigi.cmake | |
download | kbfx-ceea23677c61f20759ae986bd77b0d5c4d673edb.tar.gz kbfx-ceea23677c61f20759ae986bd77b0d5c4d673edb.zip |
Added old KDE3 version of kbfx
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1091549 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cmakemodules/FindStrigi.cmake')
-rw-r--r-- | cmakemodules/FindStrigi.cmake | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/cmakemodules/FindStrigi.cmake b/cmakemodules/FindStrigi.cmake new file mode 100644 index 0000000..072ad84 --- /dev/null +++ b/cmakemodules/FindStrigi.cmake @@ -0,0 +1,47 @@ +# - Try to find Strigi +# Once done this will define +# +# STRIGI_FOUND - system has Strigi +# STRIGI_INCLUDE_DIR - the Strigi include directory +# STRIGIHTMLGUI_LIBRARY - Link these to use Strigi html gui +# STRIGICLIENT_LIBRARY - Link to use the Strigi C++ client +# + +FIND_PATH(STRIGI_INCLUDE_DIR strigihtmlgui.h + PATHS + $ENV{HOME}/include/strigi + $ENV{HOME}/usr/include/strigi + $ENV{KDEDIR}/include/strigi + /opt/kde/include/strigi + /opt/kde3/include/strigi + /opt/kde4/include/strigi + /usr/kde/3.5/include/strigi + /usr/include/strigi + /usr/local/include/strigi + /opt/include/strigi + ${INCLUDE_SEARCH_PATHES} +) + +FIND_LIBRARY(STRIGIHTMLGUI_LIBRARY NAMES strigihtmlgui + PATHS + ${LIB_SEARCH_PATHES} +) +FIND_LIBRARY(STRIGICLIENT_LIBRARY NAMES searchclient + PATHS + ${LIB_SEARCH_PATHES} +) + +IF(STRIGI_INCLUDE_DIR AND STRIGIHTMLGUI_LIBRARY AND STRIGICLIENT_LIBRARY) + SET(STRIGI_FOUND TRUE) +ENDIF(STRIGI_INCLUDE_DIR AND STRIGIHTMLGUI_LIBRARY AND STRIGICLIENT_LIBRARY) + +IF(STRIGI_FOUND) + IF(NOT Strigi_FIND_QUIETLY) + MESSAGE(STATUS "Found Strigi: ${STRIGIHTMLGUI_LIBRARY}") + ENDIF(NOT Strigi_FIND_QUIETLY) +ELSE(STRIGI_FOUND) + IF(Strigi_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could not find Strigi! Please download and install Strigi from http://strigi.sf.net") + ENDIF(Strigi_FIND_REQUIRED) +ENDIF(STRIGI_FOUND) + |