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

Alexander Neundorf neundorf at kde.org
Fri Feb 22 17:03:34 UTC 2013


On Friday 22 February 2013, 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?

What is already possible, you can find the KF5 libraries as components of KF5:

find_package(KF5 REQUIRED COMPONENTS CMake Compiler InstallDir
                                     kcoreaddons kconfig kauth)

and this is where I noticed that CamelCasing would look much nicer.

Alex


More information about the Kde-frameworks-devel mailing list