Add isce2 applications to $PATH

LT1AB
Ryan Burns 2020-02-03 17:52:44 -08:00
parent 0e8b330fe2
commit 81fee920ad
1 changed files with 11 additions and 0 deletions

View File

@ -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()