File: CMakeLists.txt

package info (click to toggle)
eccodes 2.45.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 154,456 kB
  • sloc: cpp: 162,953; ansic: 26,308; sh: 21,742; f90: 6,854; perl: 6,361; python: 5,172; java: 2,226; javascript: 1,427; yacc: 854; fortran: 543; lex: 359; makefile: 278; xml: 183; awk: 66
file content (26 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (5)
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
# data/gts/CMakeLists.txt
# Download all the GTS data and reference files from website
#
file(READ "gts_data_files.txt" gts_files_to_download)
string(REGEX REPLACE "\n" ";" gts_files_to_download "${gts_files_to_download}")

file(READ "gts_ref_files.txt" gts_refs_to_download)
string(REGEX REPLACE "\n" ";" gts_refs_to_download "${gts_refs_to_download}")

if( ENABLE_EXTRA_TESTS )
    ecbuild_get_test_multidata(
        TARGET eccodes_download_gts
        NOCHECK
        NAMES ${gts_files_to_download} ${gts_refs_to_download}
    )
endif()

# Copy other files - e.g. text files etc from the source data/gts dir
list(APPEND other_files
    gts_data_files.txt
    gts_ref_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()