mirror of https://github.com/ecmwf/eccodes.git
Clean up
This commit is contained in:
parent
0c5347884d
commit
ad4893879d
|
@ -30,50 +30,49 @@ ecbuild_declare_project()
|
||||||
# some variables/options of this project
|
# some variables/options of this project
|
||||||
|
|
||||||
ecbuild_add_option( FEATURE JPG
|
ecbuild_add_option( FEATURE JPG
|
||||||
DESCRIPTION "support for JPG decoding/encoding"
|
DESCRIPTION "support for JPG decoding/encoding"
|
||||||
DEFAULT ON
|
DEFAULT ON
|
||||||
)
|
)
|
||||||
|
|
||||||
ecbuild_add_option( FEATURE PNG
|
ecbuild_add_option( FEATURE PNG
|
||||||
DESCRIPTION "support for PNG decoding/encoding"
|
DESCRIPTION "support for PNG decoding/encoding"
|
||||||
DEFAULT OFF
|
DEFAULT OFF
|
||||||
REQUIRED_PACKAGES PNG
|
REQUIRED_PACKAGES PNG
|
||||||
)
|
)
|
||||||
|
|
||||||
if( HAVE_PNG )
|
if( HAVE_PNG )
|
||||||
set( HAVE_LIBPNG 1 ) # compatibility with autotools
|
set( HAVE_LIBPNG 1 ) # compatibility with autotools
|
||||||
add_definitions( ${PNG_DEFINITIONS} )
|
add_definitions( ${PNG_DEFINITIONS} )
|
||||||
else()
|
else()
|
||||||
set( HAVE_LIBPNG 0 )
|
set( HAVE_LIBPNG 0 )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
ecbuild_add_option( FEATURE NETCDF
|
ecbuild_add_option( FEATURE NETCDF
|
||||||
DESCRIPTION "support for GRIB to NetCDF conversion"
|
DESCRIPTION "support for GRIB to NetCDF conversion"
|
||||||
DEFAULT ON
|
DEFAULT ON
|
||||||
REQUIRED_PACKAGES NetCDF
|
REQUIRED_PACKAGES NetCDF
|
||||||
)
|
)
|
||||||
|
|
||||||
ecbuild_add_option( FEATURE AEC
|
ecbuild_add_option( FEATURE AEC
|
||||||
DESCRIPTION "support for Adaptive Entropy Coding"
|
DESCRIPTION "support for Adaptive Entropy Coding"
|
||||||
DEFAULT OFF
|
DEFAULT OFF
|
||||||
REQUIRED_PACKAGES AEC
|
REQUIRED_PACKAGES AEC
|
||||||
)
|
)
|
||||||
|
|
||||||
ecbuild_add_option( FEATURE PYTHON
|
ecbuild_add_option( FEATURE PYTHON
|
||||||
DESCRIPTION "build the GRIB_API Python interface"
|
DESCRIPTION "build the GRIB_API Python interface"
|
||||||
DEFAULT ON
|
DEFAULT ON
|
||||||
)
|
)
|
||||||
|
|
||||||
ecbuild_add_option( FEATURE FORTRAN
|
ecbuild_add_option( FEATURE FORTRAN
|
||||||
DESCRIPTION "build the GRIB_API Fortran interface"
|
DESCRIPTION "build the GRIB_API Fortran interface"
|
||||||
DEFAULT ON
|
DEFAULT ON
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if( ENABLE_FORTRAN )
|
if( ENABLE_FORTRAN )
|
||||||
# will set EC_HAVE_FORTRAN with the result
|
# will set EC_HAVE_FORTRAN with the result
|
||||||
ecbuild_enable_fortran( MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/fortran/modules )
|
ecbuild_enable_fortran( MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/fortran/modules )
|
||||||
set( HAVE_FORTRAN ${EC_HAVE_FORTRAN} )
|
set( HAVE_FORTRAN ${EC_HAVE_FORTRAN} )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# advanced options (not visible in cmake-gui )
|
# advanced options (not visible in cmake-gui )
|
||||||
|
@ -171,16 +170,16 @@ endif()
|
||||||
# contents
|
# contents
|
||||||
|
|
||||||
if( NOT ${DEVELOPER_MODE} )
|
if( NOT ${DEVELOPER_MODE} )
|
||||||
set( grib_api_default_data_prefix ${CMAKE_INSTALL_PREFIX} )
|
set( grib_api_default_data_prefix ${CMAKE_INSTALL_PREFIX} )
|
||||||
else()
|
else()
|
||||||
set( grib_api_default_data_prefix ${CMAKE_BINARY_DIR} )
|
set( grib_api_default_data_prefix ${CMAKE_BINARY_DIR} )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( NOT DEFINED GRIB_API_DEFINITION_PATH )
|
if( NOT DEFINED GRIB_API_DEFINITION_PATH )
|
||||||
set( GRIB_API_DEFINITION_PATH ${grib_api_default_data_prefix}/share/grib_api/definitions )
|
set( GRIB_API_DEFINITION_PATH ${grib_api_default_data_prefix}/share/grib_api/definitions )
|
||||||
endif()
|
endif()
|
||||||
if( NOT DEFINED GRIB_API_SAMPLES_PATH )
|
if( NOT DEFINED GRIB_API_SAMPLES_PATH )
|
||||||
set( GRIB_API_SAMPLES_PATH ${grib_api_default_data_prefix}/share/grib_api/samples )
|
set( GRIB_API_SAMPLES_PATH ${grib_api_default_data_prefix}/share/grib_api/samples )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
### config header
|
### config header
|
||||||
|
|
Loading…
Reference in New Issue