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

23 lines
553 B
Bash
Raw Normal View History

2014-03-31 12:57:06 +00:00
# examples/C include file for CMake
set -ea
# If this environment variable is set, then become verbose
# so one can see why and how a test failed
if test "x$ECCODES_TEST_VERBOSE_OUTPUT" != "x"; then
set -x
fi
2014-03-31 12:57:06 +00:00
proj_dir=@PROJECT_SOURCE_DIR@
data_dir=@PROJECT_BINARY_DIR@/data
def_dir="${proj_dir}/definitions"
ECCODES_DEFINITION_PATH="${def_dir}"
export ECCODES_DEFINITION_PATH
2014-03-31 12:57:06 +00:00
tools_dir=@PROJECT_BINARY_DIR@/bin/
2014-03-31 12:57:06 +00:00
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
samp_dir="${proj_dir}/samples"
ECCODES_SAMPLES_PATH=${samp_dir}
export ECCODES_SAMPLES_PATH