mirror of https://github.com/ecmwf/eccodes.git
36 lines
1.2 KiB
CMake
36 lines
1.2 KiB
CMake
# tools library
|
|
|
|
ecbuild_add_library( TARGET grib_tools
|
|
TYPE STATIC
|
|
NOINSTALL
|
|
SOURCES grib_tools.c grib_options.c grib_tools.h
|
|
LIBS grib_api )
|
|
|
|
# tools binaries
|
|
|
|
list( APPEND grib_tools_bins
|
|
grib_keys grib_histogram grib_error grib_add big2gribex
|
|
grib_debug grib_info grib_filter grib_ls grib_dump
|
|
grib2ppm grib_set grib_get grib_get_data grib_copy grib_repair
|
|
grib_packing grib_cmp grib_convert grib_distance grib_corruption_check
|
|
grib_compare parser grib_count grib_index_build
|
|
gg_sub_area_check grib_moments grib_to_netcdf )
|
|
|
|
foreach( tool ${grib_tools_bins} )
|
|
|
|
# here we use the fact that each tool has only one C file that matches its name
|
|
ecbuild_add_executable( TARGET ${tool}
|
|
SOURCES ${tool}.c
|
|
INCLUDES ${GRIB_API_EXTRA_INCLUDE_DIRS}
|
|
LIBS grib_tools )
|
|
|
|
endforeach()
|
|
|
|
ecbuild_add_executable( TARGET grib_list_keys
|
|
SOURCES list_keys.c
|
|
LIBS grib_tools )
|
|
|
|
# missing noinst_PROGRAMS
|
|
|
|
# missing grib1to2
|