[CMake] how to rename file during install ?
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Jun 20 02:15:16 EDT 2005
> Von: Lars Nordlund <lars.nordlund at hem.utfors.se>
...
> "Alexander Neundorf" <a.neundorf-work at gmx.net> wrote:
>
> > Hi,
> >
> > I have a bunch of icons named like hi16-action-view_fit_height.png.
This
> > one has to be installed to
> > ${somePrefix}/16x16/actions/view_fit_height.png .
> >
> > I have working regexps for the components of the name (size, group,
> > actual name) which I can use the determine the target directory, but
now
> > I'm not sure how to rename the icon during the install step.
> >
> > INSTALL_FILES() doesn't seem to offer a feature for renaming a file
> > during the install step.
> > I could add a custom target, which calls
> > cmake -E copy <origname> <targetname> .
>
> How about using CONFIGURE_FILE with the COPYONLY option?
Hmm, but how do I make this part of the install target, so that it gets
executed when installing ?
Bye
Alex
P.S. state of compiling KDE: work in progress, I'm currently working on
kdelibs/
--
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++
More information about the CMake
mailing list