vcpkg/ports/gdal/cmake-project-include.cmake
Kai Pastor 5b539db37e
[kealib] Cleanup, fix cmake config, [gdal] Add feature 'kea' (#35437)
* [gdal] Add feature 'kea'

* [gdal] Accept (vcpkg) interface and alias targets
2023-12-27 15:39:57 -08:00

14 lines
512 B
CMake

if(GDAL_USE_KEA)
find_package(Kealib CONFIG REQUIRED)
add_library(KEA::KEA ALIAS Kealib::Kealib)
set(GDAL_CHECK_PACKAGE_KEA_NAMES Kealib CACHE INTERNAL "vcpkg")
set(GDAL_CHECK_PACKAGE_KEA_TARGETS Kealib::Kealib CACHE INTERNAL "vcpkg")
endif()
if(GDAL_USE_WEBP)
find_package(WebP CONFIG REQUIRED)
add_library(WEBP::WebP ALIAS WebP::webp)
set(GDAL_CHECK_PACKAGE_WebP_NAMES WebP CACHE INTERNAL "vcpkg")
set(GDAL_CHECK_PACKAGE_WebP_TARGETS WebP::webp CACHE INTERNAL "vcpkg")
endif()