2014-04-01 08:54:03 +00:00
|
|
|
# examples/python include file for CMake
|
|
|
|
|
|
|
|
set -ea
|
|
|
|
proj_dir=@PROJECT_SOURCE_DIR@
|
|
|
|
data_dir=@PROJECT_BINARY_DIR@/data
|
|
|
|
|
|
|
|
def_dir="${proj_dir}/definitions"
|
2015-01-23 22:47:51 +00:00
|
|
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
|
|
|
export ECCODES_DEFINITION_PATH
|
2014-04-01 08:54:03 +00:00
|
|
|
|
|
|
|
tools_dir=@CMAKE_BINARY_DIR@/bin/
|
|
|
|
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
|
|
|
|
|
|
|
|
samp_dir="${proj_dir}/samples"
|
2015-01-23 22:47:51 +00:00
|
|
|
ECCODES_SAMPLES_PATH=${samp_dir}
|
|
|
|
export ECCODES_SAMPLES_PATH
|
2014-04-01 08:54:03 +00:00
|
|
|
|
|
|
|
PYTHONPATH=$proj_dir/python:@PROJECT_BINARY_DIR@/python:$PYTHONPATH
|
|
|
|
export PYTHONPATH
|