2020-08-22 06:44:23 +08:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
include(SelectLibraryConfigurations)
|
|
|
|
|
|
|
|
find_path(GDAL_INCLUDE_DIR NAMES gdal.h HINTS ${CURRENT_INSTALLED_DIR})
|
|
|
|
|
2020-11-21 02:29:25 +08:00
|
|
|
find_library(GDAL_LIBRARY_DEBUG NAMES gdal_d gdal_i_d gdal NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH REQUIRED)
|
|
|
|
find_library(GDAL_LIBRARY_RELEASE NAMES gdal_i gdal NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED)
|
2020-08-22 06:44:23 +08:00
|
|
|
|
|
|
|
select_library_configurations(GDAL)
|
|
|
|
|
2020-11-21 02:29:25 +08:00
|
|
|
set(GDAL_INCLUDE_DIRS ${GDAL_INCLUDE_DIR})
|
|
|
|
set(GDAL_LIBRARIES ${GDAL_LIBRARY})
|