macro_optional_find_package(Whatever) without FindWhatever.cmake

Alexander Neundorf neundorf at kde.org
Thu Sep 4 18:44:22 CEST 2008


On Thursday 04 September 2008, Allen Winter wrote:
> On Wednesday 03 September 2008 17:54:19 Alexander Neundorf wrote:
> > On Wednesday 03 September 2008, Jan Kundrát wrote:
> > > Hi guys,
> > > I'd like to add an optional support for Marble to KPhotoALbum. My
> > > approach was the classic one:
> > >
> > > macro_optional_find_package(Marble)
> > >
> > > However, as I'd like to make the support really optional, I want it to
> > > work even on systems without the FindMarble.cmake file (another KPA
> > > developer sitting next to me has such system).
> > >
> > > How should I solve this issue? I'd like to avoid bundling the
> > > FindMarble.cmake with my application, as it'd just cause troubles
> > > because I certainly won't keep it synced with the official one etc.
> >
> > Hmm, FindMarble.cmake is in kdeedu/marble/, and only installed once
> > marble is installed. This is only mildly usefull (since, as you noted, it
> > only works if marble is actually there).
> > I think there are only two options:
> > 1) move FindMarble.cmake to kdelibs/cmake/modules/
> > 2) ship a copy of it with your application
>
> I'm really thinking we need to move the Marble libs out of kdeedu and
> into.. I don't know... exactly. 

kdeedulibs ?
Does the marble lib actually use anything from KDE ? AFAIK it is/can be built 
as pure Qt. Would this mean kdesupport ? (I could imagine Tackat would like 
this).

Alex


More information about the Kde-buildsystem mailing list