examples for finding library
Alexander Neundorf
neundorf at kde.org
Tue Dec 21 22:48:08 CET 2010
Hi Pau,
On Tuesday 21 December 2010, Pau Garcia i Quiles wrote:
> On Tue, Dec 21, 2010 at 9:47 PM, Niko Sams <niko.sams at gmail.com> wrote:
> > Hi,
> >
> > we are in the process of (eventually) splitting kdeedu for git
> > conversion. If libkdeedu get's an own repository some cmake code is
> > needed to make is possible to find libkdeedu.
> > (Current situation is one large repository where relative paths can
> > just be used)
> >
> > Where can I find examples that do similar things?
> > We could also need volunteers helping with this issue.
>
> If your needs are not too complex, you may try CModuler:
>
> http://gitorious.org/cmoduler
>
> If you need to look for more than 1 header file / library, modify the
> output of CModuler as needed.
I just had a quick look.
I'd suggest to remove the
if ( .... )
set(...FOUND TRUE)
endif()
at the top
and to use
find_package_handle_standard_args()
This will make the resulting Find-module also much shorter :-)
Alex
More information about the Kde-buildsystem
mailing list