mirror of https://github.com/ecmwf/eccodes.git
Added pkgconfig
This commit is contained in:
parent
e1ac37bc5f
commit
2e1d5a33ce
|
@ -266,6 +266,25 @@ if( NOT PROJECT_NAME STREQUAL CMAKE_PROJECT_NAME )
|
||||||
set( ECCODES_INSTALL_ECMWF_TOOLS ${ECCODES_INSTALL_ECMWF_TOOLS} PARENT_SCOPE )
|
set( ECCODES_INSTALL_ECMWF_TOOLS ${ECCODES_INSTALL_ECMWF_TOOLS} PARENT_SCOPE )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# pkg-config
|
||||||
|
ecbuild_pkgconfig(
|
||||||
|
NAME eccodes
|
||||||
|
URL "https://software.ecmwf.int/wiki/display/ECC"
|
||||||
|
DESCRIPTION "The ecCodes library"
|
||||||
|
IGNORE_LIBRARIES grib_api_f90 grib_api_f77
|
||||||
|
IGNORE_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/fortran ${CMAKE_CURRENT_BINARY_DIR}/fortran ${NETCDF_INCLUDE_DIRS}
|
||||||
|
VARIABLES HAVE_JPG HAVE_LIBJASPER GRIB_PTHREADS HAVE_NETCDF HAVE_PYTHON HAVE_FORTRAN HAVE_PNG HAVE_AEC
|
||||||
|
)
|
||||||
|
if( EC_HAVE_FORTRAN )
|
||||||
|
ecbuild_pkgconfig(
|
||||||
|
NAME eccodes_f90
|
||||||
|
URL "https://software.ecmwf.int/wiki/display/ECC"
|
||||||
|
IGNORE_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/fortran ${CMAKE_CURRENT_BINARY_DIR}/fortran ${NETCDF_INCLUDE_DIRS}
|
||||||
|
DESCRIPTION "The ecCodes library for Fortran 90"
|
||||||
|
VARIABLES HAVE_JPG HAVE_LIBJASPER GRIB_PTHREADS HAVE_NETCDF HAVE_PYTHON HAVE_PNG HAVE_AEC
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
############################################################################################
|
############################################################################################
|
||||||
# finalize
|
# finalize
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue