mirror of https://github.com/ecmwf/eccodes.git
CMake style
This commit is contained in:
parent
79677592cb
commit
a45df08da7
|
@ -399,8 +399,7 @@ list( APPEND grib_api_srcs
|
|||
grib_accessor_class_data_g2bifourier_packing.c
|
||||
eccodes_windef.h
|
||||
# We ship our own generated lex/yacc C files
|
||||
grib_yacc.c grib_lex.c
|
||||
)
|
||||
grib_yacc.c grib_lex.c )
|
||||
|
||||
list( APPEND grib_api_extra_srcs
|
||||
grib_bits_fast_big_endian.c grib_bits_any_endian.c
|
||||
|
@ -410,8 +409,7 @@ list( APPEND grib_api_extra_srcs
|
|||
encode_double_array.c
|
||||
grib_bits_ibmpow.c
|
||||
grib_bits_ibmpow_opt.c
|
||||
minmax_val.c
|
||||
)
|
||||
minmax_val.c )
|
||||
|
||||
configure_file( grib_api_version.c.in grib_api_version.c @ONLY )
|
||||
configure_file( eccodes_version.h.in eccodes_version.h @ONLY )
|
||||
|
@ -426,12 +424,12 @@ configure_file( eccodes_version.h.in eccodes_version.h @ONLY )
|
|||
# YACC_FLAGS "-y"
|
||||
# DEPENDANT action.c )
|
||||
|
||||
if(HAVE_MEMFS)
|
||||
if( HAVE_MEMFS )
|
||||
list(APPEND ECCODES_EXTRA_LIBRARIES eccodes_memfs)
|
||||
endif()
|
||||
|
||||
|
||||
ecbuild_add_library(TARGET eccodes
|
||||
ecbuild_add_library( TARGET eccodes
|
||||
SOURCES grib_api_version.c
|
||||
# griby.c gribl.c
|
||||
${grib_api_srcs}
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
list( APPEND grib_tools_sources
|
||||
grib_tools.c
|
||||
grib_options.c
|
||||
grib_tools.h
|
||||
)
|
||||
grib_tools.h )
|
||||
|
||||
if( EC_OS_NAME MATCHES "windows" )
|
||||
list( APPEND grib_tools_sources wingetopt.c )
|
||||
|
@ -35,8 +34,7 @@ list( APPEND ecc_tools_binaries
|
|||
bufr_ls bufr_dump bufr_set bufr_get
|
||||
bufr_copy bufr_compare
|
||||
gts_get gts_compare gts_copy gts_dump gts_filter gts_ls
|
||||
metar_dump metar_ls metar_compare metar_get metar_filter metar_copy
|
||||
)
|
||||
metar_dump metar_ls metar_compare metar_get metar_filter metar_copy )
|
||||
|
||||
list( APPEND ecc_tools_binaries_extra
|
||||
big2gribex
|
||||
|
@ -44,8 +42,7 @@ list( APPEND ecc_tools_binaries_extra
|
|||
grib_repair
|
||||
grib_to_json
|
||||
grib_check_gaussian_grid
|
||||
bufr_split_by_rdbSubtype
|
||||
)
|
||||
bufr_split_by_rdbSubtype )
|
||||
|
||||
# Install generic tools
|
||||
foreach( tool ${ecc_tools_binaries} )
|
||||
|
@ -80,7 +77,7 @@ ecbuild_add_executable( TARGET grib_to_netcdf
|
|||
SOURCES grib_to_netcdf.c
|
||||
INCLUDES ${NETCDF_INCLUDE_DIRS}
|
||||
CONDITION HAVE_NETCDF
|
||||
LIBS grib_tools ${NETCDF_LIBRARIES})
|
||||
LIBS grib_tools ${NETCDF_LIBRARIES} )
|
||||
|
||||
|
||||
ecbuild_add_executable( TARGET grib_list_keys
|
||||
|
@ -94,7 +91,7 @@ ecbuild_add_executable( TARGET codes_bufr_filter
|
|||
|
||||
|
||||
# grib1to2 script needs to be generated before installation
|
||||
if (ECCODES_INSTALL_EXTRA_TOOLS)
|
||||
if( ECCODES_INSTALL_EXTRA_TOOLS )
|
||||
ecbuild_info("ECCODES_INSTALL_EXTRA_TOOLS enabled")
|
||||
configure_file( grib1to2.in grib1to2 )
|
||||
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/grib1to2
|
||||
|
|
Loading…
Reference in New Issue