Adding a dependency on Nepomuk to kdegraphics

Allen Winter winter at kde.org
Tue Mar 18 22:56:56 GMT 2008


On Tuesday 18 March 2008 17:07:44 Aurélien Gâteau wrote:
> Hello,
>
> I have been working on adding support for Nepomuk to Gwenview lately. I
> added the necessary CMake checks to find the required library, based on
> the kdebase checks.
> I noticed Nepomuk is an optional dependency of kdebase. Am I right in
> assuming the dependency is optional because Nepomuk was not as available
> or stable as now when this dependency was introduced? Should I make
> kdegraphics dependency on Nepomuk optional too?
>

Nepomuk will only be built in kdelibs if Soprano is available.
And one might wish to build kdegraphics without Nepomuk support optionally.

So a macro_optional_find_package(Nepomuk) might be what you want.

That's how we do it in kdepim/CMakeLists.txt. ie:
 macro_optional_find_package(Nepomuk)
 macro_log_feature(Nepomuk_FOUND "Nepomuk" "Nepomuk" "http://www.kde.org" 
FALSE "" "For adding desktop-wide tagging support to gwenview")





More information about the kde-core-devel mailing list