diff --git a/Userspace/coreutils/CMakeLists.txt b/Userspace/coreutils/CMakeLists.txt index 5f5fe17c..ed170fb3 100644 --- a/Userspace/coreutils/CMakeLists.txt +++ b/Userspace/coreutils/CMakeLists.txt @@ -49,3 +49,11 @@ foreach(name IN LISTS GROUP_MAP_) ) install(TARGETS ${name} DESTINATION bin) endforeach() + +if(UNIX AND TARGET test) + install(CODE "execute_process( + COMMAND ${CMAKE_COMMAND} -E create_symlink + test + \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin/[\" + )") +endif()