From c1f67482231891bb6848ae8c6fb701b099fe8d93 Mon Sep 17 00:00:00 2001 From: clibdev Date: Tue, 31 Dec 2024 16:25:50 +0200 Subject: [PATCH 1/2] cmake install --- .gitignore | 4 +++- CMakeLists.txt | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 38fe570df..f0f9ecfa3 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 6a60b8c46..2462f4e60 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) From bef712302c67b51b8cb31be34c12f5527193372f Mon Sep 17 00:00:00 2001 From: leejet Date: Thu, 11 Sep 2025 22:20:14 +0800 Subject: [PATCH 2/2] remove dup git ignore entry --- .gitignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitignore b/.gitignore index 21f01e2f3..dd4f6435a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,6 @@ test/ .idea/ .cache/ *.swp -.vscode/ -.idea/ *.bat *.bin *.exe