Preference for finding a kde module

Alexander Neundorf neundorf at kde.org
Fri Oct 3 01:10:34 CEST 2008


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 ?

...
> So.. I am currently putting the finishing touches on a CMake buildsystem
> for the libical project. I should make a LibicalConfig.cmake, right.  What
> should it look like?  Where should I install it?

e.g. lib/libical/, see the man page, find_package() for details.

Alex


More information about the Kde-buildsystem mailing list