eccodes/examples/python/include.ctest.sh.in

32 lines
855 B
Bash
Raw Normal View History

2014-04-01 08:54:03 +00:00
# examples/python include file for CMake
set -eax
2014-04-01 08:54:03 +00:00
data_dir=@PROJECT_BINARY_DIR@/data
HAVE_PRODUCT_BUFR=@HAVE_PRODUCT_BUFR@
HAVE_PRODUCT_GRIB=@HAVE_PRODUCT_GRIB@
HAVE_MEMFS=@HAVE_MEMFS@
2014-04-01 08:54:03 +00:00
# use definitions from binary dir to test if installation will be correct
def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@"
ECCODES_DEFINITION_PATH="${def_dir}"
export ECCODES_DEFINITION_PATH
2014-04-01 08:54:03 +00:00
2017-02-03 14:21:24 +00:00
tools_dir=@CMAKE_BINARY_DIR@/bin
2017-02-03 14:29:47 +00:00
examples_dir=@CMAKE_CURRENT_BINARY_DIR@
2017-02-03 14:38:47 +00:00
examples_src=@CMAKE_CURRENT_SOURCE_DIR@
2014-04-01 08:54:03 +00:00
# use samples from binary dir to test if installation will be correct
samp_dir="@CMAKE_BINARY_DIR@/@ECCODES_SAMPLES_SUFF@"
ECCODES_SAMPLES_PATH=${samp_dir}
export ECCODES_SAMPLES_PATH
2014-04-01 08:54:03 +00:00
if [ $HAVE_MEMFS -eq 1 ]; then
unset ECCODES_DEFINITION_PATH
fi
2020-07-05 21:40:57 +00:00
PYTHONPATH=@PROJECT_BINARY_DIR@/python:$PYTHONPATH
2014-04-01 08:54:03 +00:00
export PYTHONPATH
2018-11-21 18:33:11 +00:00
echo "Current directory: `pwd`"