Added pkgconfig

This commit is contained in:
Shahram Najm 2015-01-29 13:07:39 +00:00
parent e1ac37bc5f
commit 2e1d5a33ce
1 changed files with 19 additions and 0 deletions

View File

@ -266,6 +266,25 @@ if( NOT PROJECT_NAME STREQUAL CMAKE_PROJECT_NAME )
set( ECCODES_INSTALL_ECMWF_TOOLS ${ECCODES_INSTALL_ECMWF_TOOLS} PARENT_SCOPE )
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