Copy over files to build area

This commit is contained in:
Shahram Najm 2016-08-05 11:33:37 +01:00
parent 2f72fdec8a
commit 8c09a49aa8
2 changed files with 10 additions and 1 deletions

View File

@ -23,7 +23,6 @@ if( ENABLE_TESTS )
set_property( TEST eccodes_download_gribs APPEND PROPERTY LABELS download_data ) set_property( TEST eccodes_download_gribs APPEND PROPERTY LABELS download_data )
endif() endif()
# Copy other files - e.g. reference data, text files etc from the source data dir # Copy other files - e.g. reference data, text files etc from the source data dir
LIST(APPEND other_files LIST(APPEND other_files
60_model_levels 60_model_levels
@ -64,6 +63,7 @@ LIST(APPEND other_files
step_grib1.log step_grib1.log
typeOfProcessedData.ok typeOfProcessedData.ok
tigge_pf_ecmwf.grib2.ref tigge_pf_ecmwf.grib2.ref
grib_data_files.txt
) )
foreach( file ${other_files} ) foreach( file ${other_files} )

View File

@ -11,3 +11,12 @@ ecbuild_get_test_multidata( TARGET eccodes_download_tigge_gribs
if( ENABLE_TESTS ) if( ENABLE_TESTS )
set_property( TEST eccodes_download_tigge_gribs APPEND PROPERTY LABELS download_data ) set_property( TEST eccodes_download_tigge_gribs APPEND PROPERTY LABELS download_data )
endif() 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()