vcpkg/ports/libwebp/0001-add-install-to-cmake.patch

22 lines
627 B
Diff
Raw Normal View History

2016-10-24 04:26:15 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3cb9c3b..f05800d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -276,6 +276,16 @@ foreach(I_FILE RANGE ${WEBP_SIMD_FILES_TO_INCLUDE_RANGE})
)
endforeach()
+# Install the headers
+file(GLOB PUBLIC_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/src/webp/*.h)
+install(FILES ${PUBLIC_HEADERS} DESTINATION include/webp)
+
+# Install the library
+install(TARGETS webp
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
+
# Build the executables if asked for.
if(WEBP_BUILD_CWEBP OR WEBP_BUILD_DWEBP)
# Example utility library.