install_files() or install()?
Alexander Neundorf
neundorf at kde.org
Sun Apr 23 19:03:30 CEST 2006
On Sunday 23 April 2006 18:42, you wrote:
> On Sunday 23 April 2006 19:59, Alexander Neundorf wrote:
> > Since the automake 2 cmake conversion script was written before the new
> > install() command existed, it is not used.
> > I'd suggest using the new one.
>
> Then how would I rewrite:
> install_files( ${some_install_dir} .*\\.png )
> ?
> It uses regexps but docs of INSTALL command are quiet about using
> regexps... :).
>
> I tried
>
> install( FILES .*\\.png DESTINATION ${some_install_dir} )
I didn't test yet, but probably something like:
file(GLOB pngFiles "*.png")
install(FILES ${pngFiles) DESTINATION ${installDir})
Bye
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list