Providing FindFoo.cmake for a kde module "foo"

Andreas Pakulat apaku at gmx.de
Tue Jul 10 10:45:54 CEST 2007


On 10.07.07 07:46:35, Ralf Habacker wrote:
> Alexander Neundorf schrieb:
> > On Monday 09 July 2007 17:18, Ralf Habacker wrote:
> >   
> >> Andreas Pakulat schrieb:
> >>     
> >>> On 09.07.07 06:49:23, Thiago Macieira wrote:
> >>>       
> >>>> Andreas Pakulat wrote:
> >>>>         
> >>>>> As I tried to explain at the start: this is specifically about
> >>>>> installing module's in different locations.
> >>>>>           
> >>>> I think KDEDIRS is the best way.
> >>>>         
> >>> Ok, tried and it works quite well. now the question is: where to put
> >>> this:
> >>>
> >>> exec_program(kde4-config ARGS --path data OUTPUT_VARIABLE _data_DIR)
> >>> file(TO_CMAKE_PATH "${_data_DIR}" _data_DIR)
> >>> foreach(dir ${_data_DIR})
> >>>     message("Adding ${dir} to CMAKE_MODULE_PATH")
> >>>     set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
> >>> ${dir}/share/cmake/modules) endforeach(dir)
> >>>
> >>> Also maybe we should remove the user's data-dir from that, i.e. only use
> >>> install locations. But I don't know wether thats known or not.
> >>>
> >>> Should this be in FindKDE4Internal.cmake?
> >>>       
> >> yes, because it is part of setting a propper KDE environment. I suggest
> >> the place in my send patch
> >>     
> >
> > Yes, adding the dirs reported by kde4-config in FindKDE4Internal.cmake sounds 
> > really like the right approach.
> >   
> Is anyone going to check this in or should i do it ?

Please do it, I just had a brief look at the file and I'm not sure where
to put this. Hopefully you've got a better idea about that ;)

Andreas

-- 
Avert misunderstanding by calm, poise, and balance.


More information about the Kde-buildsystem mailing list