Preference for finding a kde module
winter at kde.org
Fri Oct 3 01:52:12 CEST 2008
On Thursday 02 October 2008 19:10:34 Alexander Neundorf wrote:
> On Friday 03 October 2008, Allen Winter wrote:
> > On Tuesday 30 September 2008 20:52:09 Andreas Pakulat wrote:
> > > Hi,
> > >
> > > recently I've been browsing a bit through the cmake manual of cmake 2.6
> > > and also having looked at automoc4 buildsystem a bit. I'm wondering now
> > > wether its preferred to have FooConfig.cmake installed by a kde module or
> > > a FindFoo.cmake? Or maybe both, where the latter tries to find the former
> > > in a couple of "well known" places?
> > >
> > > Does either of the two approaches make it easier for somebody to find a
> > > module that has been installed in a custom location?
> > Trying to understand. Do I have this right?
> > So this is sorta like the pkgconfig stuff currently in style with the Unix
> > world??
> Yes, kind of.
> > CMake built packages would install FooConfig.cmake "config" modules
> > in, for example /usr/local/lib/cmake.
> Basically yes, but not in that directory.
> > CMake packages that need Foo would have a FooFind.cmake "discovery" module,
> Do you mean FindFoo.cmake or FooConfig.cmake ?
For example, if kdepimlibs needs libical, then it would have a FindLibical.cmake
discovery module that tries to use the settings from LibicalConfig.cmake.
and it's just a matter of the libical package installing LibicalConfig.cmake
in an easy-to-guess location.
More information about the Kde-buildsystem