Skip to content

Commit b64650d

Browse files
paskinoKrisThielemans
authored andcommitted
Export gadgetron home (#117)
export GADGETRON_HOME environment variable if BUILD_GADGETRON=ON closes #115
1 parent a94d189 commit b64650d

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

SuperBuild.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,15 @@ export SIRF_MATLAB_EXECUTABLE")
219219
setenv SIRF_MATLAB_EXECUTABLE ${Matlab_MAIN_PROGRAM}")
220220
endif()
221221

222+
# set GADGETRON_HOME if Gadgetron is built
223+
if (BUILD_GADGETRON)
224+
225+
set(ENV_GADGETRON_HOME_SH "\
226+
GADGETRON_HOME=${CCPPETMR_INSTALL}\n\
227+
export GADGETRON_HOME\n")
228+
set(ENV_GADGETRON_HOME_CSH "setenv GADGETRON_HOME ${CCPPETMR_INSTALL}\n")
229+
endif()
230+
222231
configure_file(env_ccppetmr.sh.in ${CCPPETMR_INSTALL}/bin/env_ccppetmr.sh)
223232
configure_file(env_ccppetmr.csh.in ${CCPPETMR_INSTALL}/bin/env_ccppetmr.csh)
224233

env_ccppetmr.csh.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ endif
2626

2727
set path=( $path @CCPPETMR_INSTALL@/bin )
2828

29+
# Export Gadgetron Home
30+
@ENV_GADGETRON_HOME_CSH@

env_ccppetmr.sh.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ export DYLD_FALLBACK_LIBRARY_PATH
2121
@ENV_MATLAB_BASH@
2222

2323
PATH=$PATH:@CCPPETMR_INSTALL@/bin
24+
25+
# Export Gadgetron Home
26+
@ENV_GADGETRON_HOME_SH@

0 commit comments

Comments
 (0)