-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from llenck/master
Add WebP support
- Loading branch information
Showing
6 changed files
with
103 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters