New "official" way how to use an installed kdelibs from the frameworks branch

Alexander Neundorf neundorf at kde.org
Fri Feb 22 17:48:53 UTC 2013


On Friday 22 February 2013, Stephen Kelly wrote:
> Kevin Ottens wrote:
> > On Friday 08 February 2013 22:36:22 Alexander Neundorf wrote:
> >> Is it only me who would prefer CamelCase to alllowercase names ?
> >> find_package(KConfig NO_MODULE)
> > 
> > Probably makes sense yes, AFAIK the Qt5 modules are camel cased too,
> > right?
> > 
> > Also I'm wondering if that'd make sense to namespace them somehow, is
> > something like KF5::KConfig possible? Is it something we want in the
> > first place?
> 
> When used in-tree, KConfig would be used, but when we install it,
> KF5::KConfig would be used. See any Config.cmake file installed already.
> We're already doing that.

That is, "KF5::KConfig" is the name of the target you use to link against 
using target_link_libraries(), not the name of the package used in 
find_package().
This is either
find_package(KConfig NO_MODULE)
or
find_package(KF5 COMPONENT KConfig)

Alex


More information about the Kde-buildsystem mailing list