Add isce2 applications to $PATH
parent
0e8b330fe2
commit
81fee920ad
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue