mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
Adding support for GDAL raster images.
This commit is contained in:
@@ -198,3 +198,15 @@ if(WITH_OPENEXR)
|
||||
|
||||
set(HAVE_OPENEXR YES)
|
||||
endif()
|
||||
|
||||
# --- GDAL (optional) ---
|
||||
if(WITH_GDAL)
|
||||
find_package(GDAL)
|
||||
|
||||
if(NOT GDAL_FOUND)
|
||||
ocv_clear_vars(GDAL_LIBRARY GDAL_INCLUDE_DIR)
|
||||
set(HAVE_GDAL NO)
|
||||
else()
|
||||
set(HAVE_GDAL YES)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user