eccodes/data/tigge/CMakeLists.txt

21 lines
767 B
CMake
Raw Normal View History

# data/tigge/CMakeLists.txt
2014-03-31 12:57:06 +00:00
# Download all the TIGGE grib data from website
2015-07-02 12:02:54 +00:00
file(READ "tigge_data_files.txt" tigge_files_to_download)
string(REGEX REPLACE "\n" ";" tigge_files_to_download "${tigge_files_to_download}")
2014-03-31 12:57:06 +00:00
2018-10-23 15:33:07 +00:00
if( ENABLE_EXTRA_TESTS )
# Download all data files
ecbuild_get_test_multidata( TARGET eccodes_download_tigge_gribs
NOCHECK
2015-07-02 12:02:54 +00:00
NAMES ${tigge_files_to_download} )
2018-10-23 15:33:07 +00:00
endif()
2016-08-05 10:33:37 +00:00
#######
# Copy other files - e.g. reference data, text files etc from the source data dir
2020-03-30 13:07:31 +00:00
list(APPEND other_files
tigge_data_files.txt)
2016-08-05 10:33:37 +00:00
foreach( file ${other_files} )
execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${file} ${CMAKE_CURRENT_BINARY_DIR} )
endforeach()