Install binaries, libraries and headers in CMake.

Change-Id: Iaf32c716e0252f9a0e9f5d663f02b8fad98096e2
This commit is contained in:
Vincent Rabaud
2017-02-22 15:57:06 +01:00
parent 976adac1ce
commit 5f62487189
3 changed files with 88 additions and 3 deletions

13
README
View File

@ -113,8 +113,8 @@ make install
CMake:
------
The support for CMake is minimal: it only helps you compile libwebp, cwebp and
dwebp.
With CMake, you can compile libwebp, cwebp, dwebp, gif2web, img2webp and the
JS bindings.
Prerequisites:
A compiler (e.g., gcc with autotools) and CMake.
@ -129,12 +129,19 @@ mkdir build && cd build && cmake ../
make
make install
If you also want cwebp or dwebp, you will need to enable them through CMake:
If you also want any of the executables, you will need to enable them through
CMake, e.g.:
cmake -DWEBP_BUILD_CWEBP=ON -DWEBP_BUILD_DWEBP=ON ../
or through your favorite interface (like ccmake or cmake-qt-gui).
Finally, once installed, you can also use WebP in your CMake project by doing:
find_package(WebP)
which will define the CMake variables WebP_INCLUDE_DIRS and WebP_LIBRARIES.
Gradle:
-------
The support for Gradle is minimal: it only helps you compile libwebp, cwebp and