mirror of https://github.com/ecmwf/eccodes.git
Fix path to tools when in a bundle project
This commit is contained in:
parent
1034a21de0
commit
49f3e1a0b3
|
@ -10,13 +10,15 @@ fi
|
||||||
proj_dir=@PROJECT_SOURCE_DIR@
|
proj_dir=@PROJECT_SOURCE_DIR@
|
||||||
data_dir=@PROJECT_BINARY_DIR@/data
|
data_dir=@PROJECT_BINARY_DIR@/data
|
||||||
|
|
||||||
def_dir="${proj_dir}/definitions"
|
# use definitions from binary dir to test if installation will be correct
|
||||||
|
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
||||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||||
export ECCODES_DEFINITION_PATH
|
export ECCODES_DEFINITION_PATH
|
||||||
|
|
||||||
tools_dir=@PROJECT_BINARY_DIR@/bin/
|
tools_dir=@CMAKE_BINARY_DIR@/bin/
|
||||||
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
|
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
|
||||||
|
|
||||||
samp_dir="${proj_dir}/samples"
|
# use samples from binary dir to test if installation will be correct
|
||||||
|
samp_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/samples"
|
||||||
ECCODES_SAMPLES_PATH=${samp_dir}
|
ECCODES_SAMPLES_PATH=${samp_dir}
|
||||||
export ECCODES_SAMPLES_PATH
|
export ECCODES_SAMPLES_PATH
|
||||||
|
|
|
@ -10,13 +10,15 @@ fi
|
||||||
proj_dir=@PROJECT_SOURCE_DIR@
|
proj_dir=@PROJECT_SOURCE_DIR@
|
||||||
data_dir=@PROJECT_BINARY_DIR@/data
|
data_dir=@PROJECT_BINARY_DIR@/data
|
||||||
|
|
||||||
def_dir="${proj_dir}/definitions"
|
# use definitions from binary dir to test if installation will be correct
|
||||||
|
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
||||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||||
export ECCODES_DEFINITION_PATH
|
export ECCODES_DEFINITION_PATH
|
||||||
|
|
||||||
tools_dir=@PROJECT_BINARY_DIR@/bin/
|
tools_dir=@CMAKE_BINARY_DIR@/bin/
|
||||||
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
|
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
|
||||||
|
|
||||||
samp_dir="${proj_dir}/samples"
|
# use samples from binary dir to test if installation will be correct
|
||||||
|
samp_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/samples"
|
||||||
ECCODES_SAMPLES_PATH=${samp_dir}
|
ECCODES_SAMPLES_PATH=${samp_dir}
|
||||||
export ECCODES_SAMPLES_PATH
|
export ECCODES_SAMPLES_PATH
|
||||||
|
|
|
@ -10,14 +10,16 @@ fi
|
||||||
proj_dir=@PROJECT_SOURCE_DIR@
|
proj_dir=@PROJECT_SOURCE_DIR@
|
||||||
data_dir=@PROJECT_BINARY_DIR@/data
|
data_dir=@PROJECT_BINARY_DIR@/data
|
||||||
|
|
||||||
def_dir="${proj_dir}/definitions"
|
# use definitions from binary dir to test if installation will be correct
|
||||||
|
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
||||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||||
export ECCODES_DEFINITION_PATH
|
export ECCODES_DEFINITION_PATH
|
||||||
|
|
||||||
tools_dir=@PROJECT_BINARY_DIR@/bin/
|
tools_dir=@CMAKE_BINARY_DIR@/bin/
|
||||||
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
|
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
|
||||||
|
|
||||||
samp_dir="${proj_dir}/samples"
|
# use samples from binary dir to test if installation will be correct
|
||||||
|
samp_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/samples"
|
||||||
ECCODES_SAMPLES_PATH=${samp_dir}
|
ECCODES_SAMPLES_PATH=${samp_dir}
|
||||||
export ECCODES_SAMPLES_PATH
|
export ECCODES_SAMPLES_PATH
|
||||||
|
|
||||||
|
|
|
@ -10,15 +10,19 @@ fi
|
||||||
proj_dir=@PROJECT_SOURCE_DIR@
|
proj_dir=@PROJECT_SOURCE_DIR@
|
||||||
data_dir=@PROJECT_BINARY_DIR@/data
|
data_dir=@PROJECT_BINARY_DIR@/data
|
||||||
|
|
||||||
def_dir=@PROJECT_SOURCE_DIR@/definitions
|
# use definitions from binary dir to test if installation will be correct
|
||||||
|
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
||||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||||
export ECCODES_DEFINITION_PATH
|
export ECCODES_DEFINITION_PATH
|
||||||
|
|
||||||
tools_dir=@PROJECT_BINARY_DIR@/bin/
|
# binaries are in the TOP CMAKE_BINARY_DIR
|
||||||
tigge_dir=@PROJECT_BINARY_DIR@/bin/
|
tools_dir=@CMAKE_BINARY_DIR@/bin/
|
||||||
|
tigge_dir=@CMAKE_BINARY_DIR@/bin/
|
||||||
|
|
||||||
|
# ecCodes tests are in the PROJECT_BINARY_DIR
|
||||||
test_dir=@PROJECT_BINARY_DIR@/tests
|
test_dir=@PROJECT_BINARY_DIR@/tests
|
||||||
|
|
||||||
samp_dir="${proj_dir}/samples"
|
# use samples from binary dir to test if installation will be correct
|
||||||
|
samp_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/samples"
|
||||||
ECCODES_SAMPLES_PATH=${samp_dir}
|
ECCODES_SAMPLES_PATH=${samp_dir}
|
||||||
export ECCODES_SAMPLES_PATH
|
export ECCODES_SAMPLES_PATH
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue