Skip to content

Commit

Permalink
Export gadgetron home (#117)
Browse files Browse the repository at this point in the history
export GADGETRON_HOME environment variable if BUILD_GADGETRON=ON

closes #115
  • Loading branch information
paskino authored and KrisThielemans committed May 8, 2018
1 parent a94d189 commit b64650d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,15 @@ export SIRF_MATLAB_EXECUTABLE")
setenv SIRF_MATLAB_EXECUTABLE ${Matlab_MAIN_PROGRAM}")
endif()

# set GADGETRON_HOME if Gadgetron is built
if (BUILD_GADGETRON)

set(ENV_GADGETRON_HOME_SH "\
GADGETRON_HOME=${CCPPETMR_INSTALL}\n\
export GADGETRON_HOME\n")
set(ENV_GADGETRON_HOME_CSH "setenv GADGETRON_HOME ${CCPPETMR_INSTALL}\n")
endif()

configure_file(env_ccppetmr.sh.in ${CCPPETMR_INSTALL}/bin/env_ccppetmr.sh)
configure_file(env_ccppetmr.csh.in ${CCPPETMR_INSTALL}/bin/env_ccppetmr.csh)

Expand Down
2 changes: 2 additions & 0 deletions env_ccppetmr.csh.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ endif

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

# Export Gadgetron Home
@ENV_GADGETRON_HOME_CSH@
3 changes: 3 additions & 0 deletions env_ccppetmr.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ export DYLD_FALLBACK_LIBRARY_PATH
@ENV_MATLAB_BASH@

PATH=$PATH:@CCPPETMR_INSTALL@/bin

# Export Gadgetron Home
@ENV_GADGETRON_HOME_SH@

0 comments on commit b64650d

Please sign in to comment.