Skip to content

Commit 6bbaf16

Browse files
authored
chore: add install() support in CMakeLists.txt (#540)
1 parent 87cdbd5 commit 6bbaf16

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
build*/
2+
cmake-build-*/
23
test/
34
.vscode/
5+
.idea/
46
.cache/
57
*.swp
6-
.vscode/
7-
.idea/
88
*.bat
99
*.bin
1010
*.exe

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,7 @@ if (SD_BUILD_EXAMPLES)
149149
add_subdirectory(examples)
150150
endif()
151151

152+
set(SD_PUBLIC_HEADERS stable-diffusion.h)
153+
set_target_properties(${SD_LIB} PROPERTIES PUBLIC_HEADER "${SD_PUBLIC_HEADERS}")
154+
155+
install(TARGETS ${SD_LIB} LIBRARY PUBLIC_HEADER)

0 commit comments

Comments
 (0)