feat: add webp support (#1384)

This commit is contained in:
leejet authored and GitHub committed 2026-04-02 01:36:11 +08:00
1 parent 99c1de379b
commit 87ecb95cbc
17 files changed
+1319 -597

No files matched your search

+5
View File
@@ -1,9 +1,14 @@
set(TARGET sd-cli)
add_executable(${TARGET}
../common/log.cpp
../common/media_io.cpp
image_metadata.cpp
main.cpp
)
install(TARGETS ${TARGET} RUNTIME)
target_link_libraries(${TARGET} PRIVATE stable-diffusion zip ${CMAKE_THREAD_LIBS_INIT})
if(SD_WEBP)
target_link_libraries(${TARGET} PRIVATE webp libwebpmux)
endif()
target_compile_features(${TARGET} PUBLIC c_std_11 cxx_std_17)