[CMake] how to rename file during install ?

Lars Nordlund lars.nordlund at hem.utfors.se
Sun Jun 19 18:22:50 EDT 2005


On Mon, 20 Jun 2005 00:11:25 +0200 (MEST)
"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?


Best regards
	Lars Nordlund


More information about the CMake mailing list