chore: add install() support in CMakeLists.txt (#540)

This commit is contained in:
clibdev authored and GitHub committed 2025-09-11 22:24:16 +08:00
1 parent 87cdbd5978
commit 6bbaf161ad
2 files changed
+6 -2

No files matched your search

+4
View File
@@ -149,3 +149,7 @@ if (SD_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
set(SD_PUBLIC_HEADERS stable-diffusion.h)
set_target_properties(${SD_LIB} PROPERTIES PUBLIC_HEADER "${SD_PUBLIC_HEADERS}")
install(TARGETS ${SD_LIB} LIBRARY PUBLIC_HEADER)