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 b
You can create a custom target and use CMake to create symlinks
ADD_CUSTOM_TARGET(link_target ALL
COMMAND ${CMAKE_COMMAND} -E create_symlink ${target} ${link})
This will only work on systems that support symlinks, see guide.
Available on UNIX only:
create_symlink old new - create a symbolic link new -> old