| | |
| | | |
| | | |
| | | 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) |
| | |
| | | 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") |