1# - Find WebP 2# Find the WebP libraries 3# 4# This module defines the following variables: 5# WEBP_FOUND - 1 if WEBP_INCLUDE_DIR & WEBP_LIBRARY are found, 0 otherwise 6# WEBP_INCLUDE_DIR - where to find webp/encode.h, etc. 7# WEBP_LIBRARY - the libwebp library 8 9find_path( WEBP_INCLUDE_DIR 10 NAMES webp/encode.h 11 PATH_SUFFIXES /usr/include /include 12 DOC "The libwebp include directory" ) 13 14find_library( WEBP_LIBRARY 15 NAMES libwebp.so 16 PATHS /usr/lib /lib 17 DOC "The libwebp library" ) 18 19if( WEBP_INCLUDE_DIR AND WEBP_LIBRARY ) 20 set( WEBP_FOUND 1 ) 21else() 22 set( WEBP_FOUND 0 ) 23endif() 24 25mark_as_advanced( WEBP_INCLUDE_DIR WEBP_LIBRARY ) 26