Newer
Older
################################################################################
## Configure launcher scripts for our singularity apps
################################################################################
set(APPS
"analyzer"
"evio2xml"
"evioCat"
"eviocopy"
"hcana"
"root"
"root-config"
"rootbrowse"
"rootls"
"et_producer"
"hc_display_server"
"hc_spec"
"softIoc"
"softIocPVA"
"caget"
"caput"
"pvput"
"pvget"
"camonitor"
"pvmonitor"
"mongo"
"mongod"
"mongodump"
"mongoexport"
"mongoimport"
"mongostat"
## Bind directive for known systems
set (OPT_BIND_DIRECTIVE "")
foreach(BIND_PATH ${INSTALL_BIND_PATH})
if (NOT "${BIND_PATH} " EQUAL " " AND EXISTS ${BIND_PATH})
set (OPT_BIND_DIRECTIVE "${OPT_BIND_DIRECTIVE} -B ${BIND_PATH}:${BIND_PATH} ")
endif ()
endforeach()
message("Adding singularity bind directive: '${OPT_BIND_DIRECTIVE}'")
find_program(SINGULARITY singularity)
foreach(APP ${APPS})
configure_file(launcher.in ${APP} @ONLY)
set(APPS_ABSOLUTE_PATH ${APPS_ABSOLUTE_PATH} "${CMAKE_CURRENT_BINARY_DIR}/${APP}")
endforeach ()
################################################################################
## Install the launcher scripts to <prefix>/bin
################################################################################
install(PROGRAMS ${APPS_ABSOLUTE_PATH}