2016-11-28 00:24:23 +08:00
|
|
|
# - 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_LIBRARY_RELEASE NAMES webp PATH_SUFFIXES lib)
|
|
|
|
find_library(WEBP_LIBRARY_DEBUG NAMES webpd PATH_SUFFIXES lib)
|
2018-02-02 05:35:21 +08:00
|
|
|
|
|
|
|
find_library(WEBPMUX_LIBRARY_RELEASE NAMES webpmux PATH_SUFFIXES lib)
|
|
|
|
find_library(WEBPMUX_LIBRARY_DEBUG NAMES webpmuxd PATH_SUFFIXES lib)
|
|
|
|
|
2016-11-28 00:24:23 +08:00
|
|
|
include(SelectLibraryConfigurations)
|
|
|
|
select_library_configurations(WEBP)
|
2018-02-02 05:35:21 +08:00
|
|
|
select_library_configurations(WEBPMUX)
|
2016-11-28 00:24:23 +08:00
|
|
|
|
2018-02-02 05:35:21 +08:00
|
|
|
set(WEBP_LIBRARIES ${WEBPMUX_LIBRARY} ${WEBP_LIBRARY})
|
2016-11-28 00:24:23 +08:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(WEBP DEFAULT_MSG WEBP_INCLUDE_DIRS WEBP_LIBRARIES)
|