Skip to content

Commit c1f6748

Browse files
committed
cmake install
1 parent dcf91f9 commit c1f6748

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
build*/
2+
cmake-build-*/
23
test/
34
.vscode/
5+
.idea/
46
.cache/
57
*.swp
68
.vscode/
@@ -10,4 +12,4 @@ test/
1012
*.gguf
1113
output*.png
1214
models*
13-
*.log
15+
*.log

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,7 @@ if (SD_BUILD_EXAMPLES)
130130
add_subdirectory(examples)
131131
endif()
132132

133+
set(SD_PUBLIC_HEADERS stable-diffusion.h)
134+
set_target_properties(${SD_LIB} PROPERTIES PUBLIC_HEADER "${SD_PUBLIC_HEADERS}")
135+
136+
install(TARGETS ${SD_LIB} LIBRARY PUBLIC_HEADER)

0 commit comments

Comments
 (0)