[CMake] Creating links / Uninstalling links
Michael Biebl
mbiebl at gmail.com
Thu May 25 08:31:32 EDT 2006
Hi all,
what's the the correct way to do the following:
1) Compile and install a binary foo to /usr/bin/foo
2) Create a link /usr/bin/bar -> /usr/bin/foo
3) On "make uninstall" remove /usr/bin/foo and /usr/bin/bar
For 1+2, I used
SET_TARGET_PROPERTIES(foo PROPERTIES POST_INSTALL_SCRIPT make_links.cmake)
For 3) I used the snippet posted on the cmake.org homepage. Unfortunately the
install_manifest.txt only records files installed by INSTALL_(). So
the links are not removed.
How can I solve this problem properly?
I'm thankful for every advice.
Cheers,
Michael
More information about the CMake
mailing list