5 Configure WCT source for a "view" providing external dependencies.
7 This script should be kept in the "waftools" git submodule of WCT.
8 But, it may be run from anywhwere:
10 ./waftools/wct-configure-for-view.sh <path-to-view> [<path-to-install>]
12 - <path-to-view> :: the file system path to the top of the view directory.
14 - <path-to-install> :: optional location for installing WCT. It
15 defaults to installing into the view.
17 Note: A likely way to create a "view" directory is with Spack:
19 spack view add -i /opt/spack/views/wct-dev wirecell-toolkit
26 if [ -z "$view" ] ; then
30 echo "Will 'wcb install' to $inst"
32 topdir=$(dirname $(dirname $(readlink -f $BASH_SOURCE)))
36 --with-jsoncpp="$view" \
37 --with-jsonnet="$view" \
39 --with-eigen-include="$view/include/eigen3" \
42 --boost-includes="$view/include" \
43 --boost-libs="$view/lib" \
49 #--with-fftw-include="$view/include" \
50 #--with-fftw-lib="$view/lib" \
53 # For runtime setup, copy-paste:
54 PATH=$inst/bin:$view/bin:\$PATH
55 export LD_LIBRARY_PATH=$inst/lib:$view/lib:\$LD_LIBRARY_PATH
58 source $view/bin/thisroot.sh
59 source $view/bin/geant4.sh
61 # and this may be needed
62 export ROOT_INCLUDE_PATH=$view/include