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

22 lines
647 B
Diff
Raw Normal View History

2016-10-24 04:26:15 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
2017-03-24 21:39:50 +08:00
index 0c62dd19..a2f72106 100644
2016-10-24 04:26:15 +08:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2017-03-24 21:39:50 +08:00
@@ -95,6 +95,16 @@ foreach(I_FILE RANGE ${WEBP_SIMD_FILES_TO_INCLUDE_RANGE})
2016-10-24 04:26:15 +08:00
)
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.
2017-03-24 21:39:50 +08:00
if(WEBP_BUILD_CWEBP OR WEBP_BUILD_DWEBP OR
WEBP_BUILD_GIF2WEBP OR WEBP_BUILD_IMG2WEBP)