mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 07:49:06 +08:00
5bd036cf5a
Extensive modification have been done to support building with external dependencies. The biggest change is a new CMake-based build system. Several patches are based on the equivalent ones used in Debian packaging, see http://sources.debian.net/patches/freeimage . The only dependency for which the internal version is still used is OpenEXR.
27 lines
670 B
CMake
27 lines
670 B
CMake
# - Find WEBP
|
|
# Find the WEBP library
|
|
# This module defines
|
|
# WEBP_INCLUDE_DIRS, where to find webp/decode.h
|
|
# WEBP_LIBRARIES, the libraries needed to use WEBP
|
|
#
|
|
|
|
find_path(WEBP_INCLUDE_DIRS
|
|
NAMES webp/decode.h
|
|
)
|
|
mark_as_advanced(WEBP_INCLUDE_DIRS)
|
|
|
|
find_library(
|
|
WEBP_LIBRARIES
|
|
NAMES webp
|
|
)
|
|
|
|
find_library(WEBP_LIBRARY_RELEASE NAMES webp PATH_SUFFIXES lib)
|
|
find_library(WEBP_LIBRARY_DEBUG NAMES webpd PATH_SUFFIXES lib)
|
|
include(SelectLibraryConfigurations)
|
|
select_library_configurations(WEBP)
|
|
|
|
set(WEBP_LIBRARIES ${WEBP_LIBRARY})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(WEBP DEFAULT_MSG WEBP_INCLUDE_DIRS WEBP_LIBRARIES)
|