1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
# data/CMakeLists.txt
set(ECBUILD_DOWNLOAD_TIMEOUT 60)
set(ECBUILD_DOWNLOAD_RETRIES 3)
add_subdirectory(tigge)
add_subdirectory(bufr)
add_subdirectory(metar)
add_subdirectory(gts)
# Download all the binary GRIB data from website
file(READ "grib_data_files.txt" files_to_download)
string(REGEX REPLACE "\n" ";" files_to_download "${files_to_download}")
# Download the CCSDS files even if HAVE_AEC feature is disabled.
# This is for testing (See ECC-1352)
list(APPEND files_to_download ccsds.grib2)
list(APPEND files_to_download ccsds_szip.grib2) # See ECC-1362
if( ENABLE_EXTRA_TESTS )
# Download all data files
ecbuild_get_test_multidata( TARGET eccodes_download_gribs
NOCHECK
NAMES ${files_to_download} )
endif()
# Copy other files - e.g. reference data, text files etc from the source data dir
list(APPEND other_files
60_model_levels
bitmap.diff
ieee_test.good
index.ok
index_f90.ok
julian.out.good
list_points
local.good.log
ls.log
multi.ok
multi_step.txt
no_bitmap.diff
read_any.ok
scan_x_regular_ll_5_4_good.dump
scan_x_regular_ll_5_7_good.dump
scan_x_regular_ll_8_4_good.dump
scan_x_regular_ll_8_7_good.dump
scan_x_rotated_ll_5_4_good.dump
scan_x_rotated_ll_5_7_good.dump
scan_x_rotated_ll_8_4_good.dump
scan_x_rotated_ll_8_7_good.dump
scan_y_regular_ll_5_4_good.dump
scan_y_regular_ll_5_7_good.dump
scan_y_regular_ll_8_4_good.dump
scan_y_regular_ll_8_7_good.dump
scan_y_rotated_ll_5_4_good.dump
scan_y_rotated_ll_5_7_good.dump
scan_y_rotated_ll_8_4_good.dump
scan_y_rotated_ll_8_7_good.dump
spherical_model_level.grib1.good
spherical_model_level.grib1_32.good
statistics.out.good
step.log
step_grib1.filter
step_grib1.log
typeOfProcessedData.ok
tigge_pf_ecmwf.grib2.ref
grib_data_files.txt
BUFR3.tmpl.dump.plain.ref
)
foreach( file ${other_files} )
execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${file} ${CMAKE_CURRENT_BINARY_DIR} )
endforeach()
|