From 8c09a49aa8ad717bae4a111713faa518a9482648 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 5 Aug 2016 11:33:37 +0100 Subject: [PATCH] Copy over files to build area --- data/CMakeLists.txt | 2 +- data/tigge/CMakeLists.txt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 06162c044..0df7e7361 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -23,7 +23,6 @@ if( ENABLE_TESTS ) set_property( TEST eccodes_download_gribs APPEND PROPERTY LABELS download_data ) endif() - # Copy other files - e.g. reference data, text files etc from the source data dir LIST(APPEND other_files 60_model_levels @@ -64,6 +63,7 @@ LIST(APPEND other_files step_grib1.log typeOfProcessedData.ok tigge_pf_ecmwf.grib2.ref + grib_data_files.txt ) foreach( file ${other_files} ) diff --git a/data/tigge/CMakeLists.txt b/data/tigge/CMakeLists.txt index adab34f6c..110c52dd2 100644 --- a/data/tigge/CMakeLists.txt +++ b/data/tigge/CMakeLists.txt @@ -11,3 +11,12 @@ ecbuild_get_test_multidata( TARGET eccodes_download_tigge_gribs if( ENABLE_TESTS ) set_property( TEST eccodes_download_tigge_gribs APPEND PROPERTY LABELS download_data ) endif() + +####### +# Copy other files - e.g. reference data, text files etc from the source data dir +LIST(APPEND other_files + tigge_data_files.txt +) +foreach( file ${other_files} ) + execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${file} ${CMAKE_CURRENT_BINARY_DIR} ) +endforeach()