cmake: build/install webpinfo

Change-Id: Ia3dd24aec0c985855865f32280de1799d4bb8e9e
This commit is contained in:
James Zern 2017-03-23 20:37:52 -07:00
parent 78fd199c3b
commit 285748be78

View File

@ -247,6 +247,16 @@ if(WEBP_BUILD_IMG2WEBP)
install(TARGETS img2webp RUNTIME DESTINATION bin)
endif()
if (WEBP_BUILD_WEBPINFO)
# webpinfo
include_directories(${WEBP_DEP_IMG_INCLUDE_DIRS})
parse_Makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/examples "WEBPINFO_SRCS"
"webpinfo")
add_executable(webpinfo ${WEBPINFO_SRCS})
target_link_libraries(webpinfo exampleutil imageioutil)
install(TARGETS webpinfo RUNTIME DESTINATION bin)
endif()
if(WEBP_BUILD_WEBP_JS)
# JavaScript version
add_executable(webp_js