[Nepomuk] CMake for Nepomuk in 5.0
Artem Serebriyskiy
v.for.vandal at gmail.com
Fri Sep 2 20:24:52 UTC 2011
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 NEPOMUK_${COMPONENT}_FOUND,
NEPOMUK_${COMPONENT}_LIBRARY, _INCLUDE_DIRS for each component ( expands to
NEPOMUK_CORE_LIBRARY, NEPOMUK_UI_LIBRARY) etc.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20110903/ca71b3d7/attachment.html>
More information about the Nepomuk
mailing list