On Monday 10 April 2006 10:35, Michael Biebl wrote: > Hi, > > I have two text files in one directory: > test.foo > test.bar > test.foo has to be installed as /dir/foo/test (test is the file name) > and test.bar to /dir/bar/test (test is the file name) > This means that both files have to be renamed during install. How can > I do that with INSTALL_FILES? It should run with CMake 2.2.
For 2.2 you should use
SET_TARGET_PROPERTIES(target
PROPERTIES POST_INSTALL_SCRIPT your_install_script.cmake)
Use ${CMAKE_COMMAND} -E copy file destination in your custom install script
If you were using cmake from cvs you could use the new INSTALL command that
supports RENAME.
--
Filipe Sousa
pgpsxem1Zsb7z.pgp
Description: PGP signature
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
