mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 03:35:28 +08:00
12 lines
613 B
CMake
12 lines
613 B
CMake
|
include(FindPackageHandleStandardArgs)
|
||
|
include(SelectLibraryConfigurations)
|
||
|
|
||
|
find_path(GDAL_INCLUDE_DIR NAMES gdal.h HINTS ${CURRENT_INSTALLED_DIR})
|
||
|
|
||
|
find_library(GDAL_LIBRARY_DEBUG NAMES gdald libgdal 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 libgdal NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED)
|
||
|
|
||
|
select_library_configurations(GDAL)
|
||
|
|
||
|
set(GDAL_INCLUDE_DIR ${GDAL_INCLUDE_DIR})
|
||
|
set(GDAL_LIBRARY ${GDAL_LIBRARY})
|