[CMake] installing/overwriting single file
Alexander Neundorf
a.neundorf-work at gmx.net
Wed Nov 4 16:07:17 EST 2009
On Wednesday 04 November 2009, Randy Heiland wrote:
> During an 'install', I would like to copy/overwrite a source file to a
> destination file. How? Something like the following (in syntax),
> although I am assuming that it is only legal to copy a file into a dir
> (and therefore the 'foo.cxx' isn't allow)?
>
> INSTALL(FILES
> ${CMAKE_SOURCE_DIR}/foo_new.cxx
> DESTINATION ${CMAKE_INSTALL_PREFIX}/foo.cxx
> )
Does
INSTALL(FILES ${CMAKE_SOURCE_DIR}/foo_new.cxx
DESTINATION ${CMAKE_INSTALL_PREFIX}
RENAME foo.cxx)
do what you want ?
Alex
More information about the CMake
mailing list