File: FindWebP.cmake

package info (click to toggle)
maim 5.8.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 284 kB
  • sloc: cpp: 2,408; makefile: 7
file content (25 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# - Find WebP
# Find the WebP libraries
#
#  This module defines the following variables:
#     WEBP_FOUND        - 1 if WEBP_INCLUDE_DIR & WEBP_LIBRARY are found, 0 otherwise
#     WEBP_INCLUDE_DIR  - where to find webp/encode.h, etc.
#     WEBP_LIBRARY      - the libwebp library

find_path( WEBP_INCLUDE_DIR
           NAMES webp/encode.h
           PATH_SUFFIXES /usr/include /include
           DOC "The libwebp include directory" )

find_library( WEBP_LIBRARY
              NAMES libwebp.so
              PATHS /usr/lib /lib
              DOC "The libwebp library" )

if( WEBP_INCLUDE_DIR AND WEBP_LIBRARY )
    set( WEBP_FOUND 1 )
else()
    set( WEBP_FOUND 0 )
endif()

mark_as_advanced( WEBP_INCLUDE_DIR WEBP_LIBRARY )