From 2088e1b7aa6419dec58800bc1d0cb24f5808affe Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Sat, 03 Feb 2024 21:19:43 +0000
Subject: [PATCH] added queue handler against simple start

---
 CMakeLists.txt |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d0f3a81..6881227 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,7 +39,7 @@
     
 
     if(NOT CMAKE_BUILD_TYPE)
-        set(CMAKE_BUILD_TYPE Debug)
+        set(CMAKE_BUILD_TYPE Release)
     endif()
 
     set(STABLE_DIFFUSION_LIB ${CMAKE_SOURCE_DIR}/external/stable-diffusion.cpp/${CMAKE_BUILD_TYPE}/lib/stable-diffusion.lib)
@@ -61,6 +61,18 @@
     message("CUDA_PATH=" ${CUDA_PATH})
     
 
+    add_custom_command(TARGET sd.ui POST_BUILD        # Adds a post-build event to MyTest
+    COMMAND ${CMAKE_COMMAND} -E copy_if_different  # which executes "cmake - E copy_if_different..."
+        "${STABLE_DIFFUSION_DLL}"      # <--this is in-file
+        $<TARGET_FILE_DIR:sd.ui>)                 # <--this is out-file path0
+
+    add_custom_command(TARGET sd.ui POST_BUILD        # Adds a post-build event to MyTest
+    COMMAND ${CMAKE_COMMAND} -E copy_if_different  # which executes "cmake - E copy_if_different..."
+        "${GGML_DLL}"      # <--this is in-file
+        $<TARGET_FILE_DIR:sd.ui>)                 # <--this is out-file path0
+
+
+
 ENDIF(MSVC)
 
 set(OpenCV_DIR "${VCPKG_INSTALLED_DIR}/x64-windows/share/opencv4")

--
Gitblit v1.9.3