How do I install a single target as multiple names? (for something like busybox)
------ CMakeLists.txt ----------- cmake_minimum_required(VERSION 2.8) PROJECT( test ) add_executable( ${PROJECT_NAME} test.c ) install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION . RENAME util_rm.exe ) install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION . RENAME util_ls.exe ) install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION . RENAME util_mv.exe ) install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION . RENAME util_cp.exe ) ------- test.c ---------- #include <stdio.h> int main( void ) { return printf( "I am a utility." ); } --------------- output ----------- 1>------ Build started: Project: INSTALL, Configuration: Debug Win32 ------ 1> Building Custom Rule M:/tmp/inst_test/CMakeLists.txt 1> CMake does not need to re-run because M:\tmp\inst_test\build\CMakeFiles\generate.stamp is up-to-date. 1> -- Install configuration: "Debug" 1> -- Installing: M:/tmp/inst_test/buid/test/./test.exe 1> -- Up-to-date: M:/tmp/inst_test/buid/test/./test.exe 1> -- Up-to-date: M:/tmp/inst_test/buid/test/./test.exe 1> -- Up-to-date: M:/tmp/inst_test/buid/test/./test.exe ---------------------------------- _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake