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

This commit is contained in:
clibdev
2025-09-11 17:24:16 +03:00
committed by GitHub
parent 87cdbd5978
commit 6bbaf161ad
2 changed files with 6 additions and 2 deletions

4
.gitignore vendored
View File

@@ -1,10 +1,10 @@
build*/
cmake-build-*/
test/
.vscode/
.idea/
.cache/
*.swp
.vscode/
.idea/
*.bat
*.bin
*.exe

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)