Find Geospatial Data Abstraction Library (GDAL).
Deprecated since version 4.0: GDAL 3.5 and above provide a GDALConfig.cmake package configuration file.
Call find_package(GDAL CONFIG) to find it directly and avoid using this
find module. For further details, see GDAL's documentation on CMake
integration.
Added in version 3.14.
This module defines IMPORTED target GDAL::GDAL
if GDAL has been found.
This module will set the following variables in your project:
GDAL_FOUNDTrue if GDAL is found.
GDAL_INCLUDE_DIRSInclude directories for GDAL headers.
GDAL_LIBRARIESLibraries to link to GDAL.
GDAL_VERSIONAdded in version 3.14: The version of GDAL found.
The following cache variables may also be set:
GDAL_LIBRARYThe libgdal library file.
GDAL_INCLUDE_DIRThe directory containing gdal.h.
Set GDAL_DIR or GDAL_ROOT in the environment to specify the
GDAL installation prefix.
The following variables may be set to modify the search strategy:
FindGDAL_SKIP_GDAL_CONFIGIf set, gdal-config will not be used. This can be useful if there are
GDAL libraries built with autotools (which provide the tool) and CMake (which
do not) in the same environment.
GDAL_ADDITIONAL_LIBRARY_VERSIONSExtra versions of library names to search for.