diff options
author | Sebastian Trueg <sebastian@trueg.de> | 2007-06-11 19:22:30 +0000 |
---|---|---|
committer | Sebastian Trueg <sebastian@trueg.de> | 2007-06-11 19:22:30 +0000 |
commit | b579d6c4002a3f3825e873dfcee815ba3696b10e (patch) | |
tree | 8ba48248bf314189c055f8e5e34401f73265cc0a /modules/FindNepomuk.cmake | |
parent | ed1c174157fc39738f8d5d7a2a5d8a10e33e95d5 (diff) | |
download | extra-cmake-modules-b579d6c4002a3f3825e873dfcee815ba3696b10e.tar.gz extra-cmake-modules-b579d6c4002a3f3825e873dfcee815ba3696b10e.tar.bz2 |
- Merged KMetaData, Konto, and KNepomuk into one nepomuk folder with two libs:
1. libnepomuk now contains KMetaData and Konto, only using one single namespace "Nepomuk"
2. libnepomuk-middleware is now what knepomuk was before and has the namespace "Nepomuk::Middleware"
This makes the design much cleaner and less confusing since we have one name for everything: Nepomuk.
I was not happy with Braid and we did not find another name so I stick to Nepomuk now. In the end people
now already now this stuff as Nepomuk and it makes the project happy. ;)
CCMAIL: nepomuk-kde.semanticdesktop.org
svn path=/trunk/KDE/kdelibs/; revision=674110
Diffstat (limited to 'modules/FindNepomuk.cmake')
-rw-r--r-- | modules/FindNepomuk.cmake | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/modules/FindNepomuk.cmake b/modules/FindNepomuk.cmake new file mode 100644 index 00000000..dc1d36a7 --- /dev/null +++ b/modules/FindNepomuk.cmake @@ -0,0 +1,43 @@ +# Once done this will define +# +# NEPOMUK_FOUND - system has Nepomuk +# NEPOMUK_INCLUDE_DIR - the Nepomuk include directory +# NEPOMUK_LIBRARIES - Link these to use Nepomuk +# NEPOMUK_DEFINITIONS - Compiler switches required for using Nepomuk +# + +FIND_PATH(NEPOMUK_INCLUDE_DIR + NAMES + nepomuk/resource.h + PATHS + ${KDE4_INCLUDE_DIR} + ${INCLUDE_INSTALL_DIR} +) + +FIND_LIBRARY(NEPOMUK_LIBRARIES + NAMES + nepomuk + nepomuk-middleware + PATHS + ${KDE4_LIB_DIR} + ${LIB_INSTALL_DIR} +) + +if(NEPOMUK_INCLUDE_DIR AND NEPOMUK_LIBRARIES) + set(Nepomuk_FOUND TRUE) +endif(NEPOMUK_INCLUDE_DIR AND NEPOMUK_LIBRARIES) + +if(Nepomuk_FOUND) + if(NOT Nepomuk_FIND_QUIETLY) + message(STATUS "Found Nepomuk: ${NEPOMUK_LIBRARIES}") + endif(NOT Nepomuk_FIND_QUIETLY) +else(Nepomuk_FOUND) + if(Nepomuk_FIND_REQUIRED) + if(NOT NEPOMUK_INCLUDE_DIR) + message(FATAL_ERROR "Could not find Nepomuk includes.") + endif(NOT NEPOMUK_INCLUDE_DIR) + if(NOT NEPOMUK_LIBRARIES) + message(FATAL_ERROR "Could not find Nepomuk library.") + endif(NOT NEPOMUK_LIBRARIES) + endif(Nepomuk_FIND_REQUIRED) +endif(Nepomuk_FOUND) |