mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-12 21:38:58 +00:00
chore: add install() support in CMakeLists.txt (#540)
This commit is contained in:
parent
87cdbd5978
commit
6bbaf161ad
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,10 +1,10 @@
|
|||||||
build*/
|
build*/
|
||||||
|
cmake-build-*/
|
||||||
test/
|
test/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.idea/
|
||||||
.cache/
|
.cache/
|
||||||
*.swp
|
*.swp
|
||||||
.vscode/
|
|
||||||
.idea/
|
|
||||||
*.bat
|
*.bat
|
||||||
*.bin
|
*.bin
|
||||||
*.exe
|
*.exe
|
||||||
|
|||||||
@ -149,3 +149,7 @@ if (SD_BUILD_EXAMPLES)
|
|||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
endif()
|
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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user