From 6bbaf161adf810432ee415608ae0392c3b10d891 Mon Sep 17 00:00:00 2001 From: clibdev <52199778+clibdev@users.noreply.github.com> Date: Thu, 11 Sep 2025 17:24:16 +0300 Subject: [PATCH] chore: add install() support in CMakeLists.txt (#540) --- .gitignore | 4 ++-- CMakeLists.txt | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7d32dea..dd4f643 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 4040c07..c0735e5 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)