[CMake] Creating an installer using cpack
Domen Vrankar
domen.vrankar at gmail.com
Fri Jan 9 15:54:04 EST 2015
> install( PROGRAM .... ) will keep executable permissions... (as opposed to
> using FILES or DIRECTORY ) not sure about symlinks....
Hm forgot about this one... Had problems with it years ago on AIX and
stopped using it back then (it removed baked in paths to libraries
from executables)... Time to try it out again :)
> http://www.cmake.org/cmake/help/v3.0/command/install.html only references
> symbolic links once, and that's for Install( TARGET ... ) " Either
> NAMELINK_ONLY or NAMELINK_SKIP may be specified as a LIBRARY option. On some
> platforms a versioned shared library has a symbolic link such as:"
You can create a symlink with a custom command or by using
execute_process with cmake -E create_symlink command and then moving
it into package with for eg install(DIRECTORY ...).
Regards,
Domen
More information about the CMake
mailing list