diff --git a/.gitignore b/.gitignore index 38fe570d..f0f9ecfa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ build*/ +cmake-build-*/ test/ .vscode/ +.idea/ .cache/ *.swp .vscode/ @@ -10,4 +12,4 @@ test/ *.gguf output*.png models* -*.log \ No newline at end of file +*.log diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a60b8c4..2462f4e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,3 +130,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)