[CMake] how to rename file during install ?

Filipe Sousa filipe at ipb.pt
Mon Jun 20 05:49:41 EDT 2005


On Monday 20 June 2005 07:15, Alexander Neundorf wrote:
> > 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 ?

Maybe this helps

SET_TARGET_PROPERTIES(foo PROPERTIES
   POST_INSTALL_SCRIPT "${PROJECT_BINARY_DIR}/post_install_foo.cmake")

> Bye
> Alex
>
> P.S. state of compiling KDE: work in progress, I'm currently working on
> kdelibs/

-- 
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20050620/c2699f7a/attachment.pgp


More information about the CMake mailing list