diff --git a/applications/CMakeLists.txt b/applications/CMakeLists.txt index a2d10d0..878267c 100644 --- a/applications/CMakeLists.txt +++ b/applications/CMakeLists.txt @@ -27,3 +27,14 @@ set(files install(PROGRAMS ${files} DESTINATION ${ISCE2_PKG}/applications) + +# Symlink apps into PREFIX/bin so they are on the $PATH +install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory \ + ${CMAKE_INSTALL_PREFIX}/bin)" + ) +foreach(file ${files}) + install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \ + ${CMAKE_INSTALL_PREFIX}/${ISCE2_PKG}/applications/${file} \ + ${CMAKE_INSTALL_PREFIX}/bin/${file})" + ) +endforeach()