mirror of
https://github.com/lemonade-sdk/stable-diffusion.cpp.git
synced 2026-11-23 17:59:29 -10:00
15 lines
398 B
CMake
15 lines
398 B
CMake
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)
|