From f67ec1c2927d2f908fe73a4fed7864e6858828ac Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 13 Mar 2008 14:56:26 +0000 Subject: configure the strigi analyzer prefix in a central place instead of spreading it all over KDE svn path=/trunk/KDE/kdelibs/; revision=785225 --- modules/FindStrigi.cmake | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/modules/FindStrigi.cmake b/modules/FindStrigi.cmake index 5368b318..f1e4d206 100644 --- a/modules/FindStrigi.cmake +++ b/modules/FindStrigi.cmake @@ -5,6 +5,7 @@ # STRIGI_INCLUDE_DIR - the Strigi include directory # STRIGI_STREAMANALYZER_LIBRARY - Link these to use Strigi streamanalyzer # STRIGI_STREAMS_LIBRARY - Link these to use Strigi streams +# STRIGI_ANALYZER_PREFIX - strigi plugin prefix # at first search only in the specified directories (NO_DEFAULT_PATH) # only if it wasn't found there, the second call to FIND_PATH/LIBRARY() @@ -118,4 +119,19 @@ find_package_handle_standard_args(Strigi "Couldn't find Strigi streams and streamanalyzer libraries. Set the environment variable STRIGI_HOME (or CMAKE_FIND_PREFIX_PATH if using CMake >=2.5) to the strigi install dir." STRIGI_STREAMS_LIBRARY STRIGI_STREAMANALYZER_LIBRARY STRIGI_INCLUDE_DIR) -mark_as_advanced(STRIGI_INCLUDE_DIR STRIGI_STREAMANALYZER_LIBRARY STRIGI_STREAMS_LIBRARY STRIGI_STRIGIQTDBUSCLIENT_LIBRARY ) +if(WIN32) + # this is needed to have mingw, cygwin and msvc libs installed in one directory + if(MSVC) + set(STRIGI_ANALYZER_PREFIX msvc_strigila_) + elseif(CYGWIN) + set(STRIGI_ANALYZER_PREFIX cyg_strigila_) + elseif(MINGW) + set(STRIGI_ANALYZER_PREFIX mingw_strigila_) + endif(MSVC) +else(WIN32) + set(STRIGI_ANALYZER_PREFIX strigila_) +endif(WIN32) + +mark_as_advanced(STRIGI_INCLUDE_DIR STRIGI_STREAMANALYZER_LIBRARY STRIGI_STREAMS_LIBRARY STRIGI_STRIGIQTDBUSCLIENT_LIBRARY STRIGI_ANALYZER_PREFIX) + + -- cgit v1.2.1