[Nepomuk] CMake for Nepomuk in 5.0

Sebastian Trüg trueg at kde.org
Fri Sep 2 20:56:40 UTC 2011

How about just doing it with a NepomukConfig.cmake and a
NepomukConfigVersion.cmake. AFAIK that is the simplest solution and does
not require any fancy script writing.
I am not sure if it is enough in all situations though...

Examples can be found in sdo, nepomukannotation, scribo, and others, I
think Akonadi does it, too.


On 09/02/2011 10:24 PM, Artem Serebriyskiy wrote:
> Hi.
> I am  trying to provide a replacement for FIndNepomuk.cmake that will
> work with new Nepomuk layout . And I have a question for desired API of
> the script. In current draft all modules are treated as components.
> Examples:
> 1. find_package(Nepomuk COMPONENTS core ui ) will try to found all
> required components and will set general variables NEPOMUK_FOUND,
> _LIBRARIES, _INCLUDE_DIRS and component-specific variables
> for each component ( expands to NEPOMUK_CORE_LIBRARY,
> 2. find_package(Nepomuk) will try to found all available modules of the
> Nepomuk on the system and for every found module will set variables
> mentioned above. Global ones are combination of all component-specific,
> and NEPOMUK_FOUND is set to true if at least any package was discovered.
> Downside of this solution is that we loose ability to request version
> for component, so it will require to sync versions at least between main
> modules.
> Is this acceptable ?
> Any comments and suggestions are welcome.
> -- 
> Sincerely yours,
> Artem Serebriyskiy

More information about the Nepomuk mailing list