diff --git a/.gitignore b/.gitignore index 7d32dea06..dd4f6435a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,10 @@ build*/ +cmake-build-*/ test/ .vscode/ +.idea/ .cache/ *.swp -.vscode/ -.idea/ *.bat *.bin *.exe diff --git a/CMakeLists.txt b/CMakeLists.txt index 4040c0723..c0735e5b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)