[CMake] how to rename file during install ?
Alexander Neundorf
a.neundorf-work at gmx.net
Sun Jun 19 18:11:25 EDT 2005
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> .
But how can I add this to the install target ?
Is there a way to add "directory-recursive" targets ?
(like "install" or "all": if I "make install" in the root dir, it
recurses through all subdirs calling "make install" in each of them).
Having a way to do this for custom targets would be nice :-)
Any ideas ?
Bye
Alex
--
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
More information about the CMake
mailing list