I want to rename certain executables in CMakeLists.txt
but also want symbolic links from the older names to new files for backward compatibility. How can this be accomplished on systems that support symbolic links?
Also what are the alternatives for system that does not support symbolic links?
Thanks
You can create a custom target and use CMake to create symlinks
This will only work on systems that support symlinks, see guide.
Another way to do it:
This way the symlinking will be done during
make install
only.Another method that is a bit more verbose and only runs on install:
Use it like this (similar to ln -s):