diff options
author | Dirk Mueller <mueller@kde.org> | 2007-06-11 09:34:58 +0000 |
---|---|---|
committer | Dirk Mueller <mueller@kde.org> | 2007-06-11 09:34:58 +0000 |
commit | 02c7e311e874cc9e863da474e6fb7ee4a6cedcb1 (patch) | |
tree | 6c153667a0641fea923cdb86da4ed661fd81cd4d /modules | |
parent | b1983b4c3a7968350db0e6eb4c9e6e7b2939f193 (diff) | |
download | extra-cmake-modules-02c7e311e874cc9e863da474e6fb7ee4a6cedcb1.tar.gz extra-cmake-modules-02c7e311e874cc9e863da474e6fb7ee4a6cedcb1.tar.bz2 |
moved here from kdebase
svn path=/trunk/KDE/kdelibs/; revision=673879
Diffstat (limited to 'modules')
-rw-r--r-- | modules/FindKNepomuk.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/FindKNepomuk.cmake b/modules/FindKNepomuk.cmake new file mode 100644 index 00000000..8074b031 --- /dev/null +++ b/modules/FindKNepomuk.cmake @@ -0,0 +1,35 @@ +# Once done this will define +# +# KNEPOMUK_FOUND - system has the Nepomuk-KDE backbone lib KNep +# KNEPOMUK_INCLUDES - the libKNep include directory +# KNEPOMUK_LIBRARIES - Link these to use libKNep +# + +FIND_PATH(KNEPOMUK_INCLUDES + NAMES + knepomuk/knepomuk.h + PATHS + /usr/include + /usr/local/include + ${KDE4_INCLUDE_DIR} + ${INCLUDE_INSTALL_DIR} +) + +FIND_LIBRARY(KNEPOMUK_LIBRARIES + NAMES + knepomuk + PATHS + /usr/lib + /usr/local/lib + ${KDE4_LIB_DIR} + ${LIB_INSTALL_DIR} +) + +if(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES) + set(KNEPOMUK_FOUND TRUE) + message(STATUS "Found KNepomuk: ${KNEPOMUK_LIBRARIES}") +else(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES) + if(KNepomuk_FIND_REQUIRED) + message(FATAL_ERROR "Could not find KNepomuk library.") + endif(KNepomuk_FIND_REQUIRED) +endif(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES) |