| | |
| | | |
| | | |
| | | if(NOT CMAKE_BUILD_TYPE) |
| | | set(CMAKE_BUILD_TYPE Release) |
| | | set(CMAKE_BUILD_TYPE Debug) |
| | | endif() |
| | | |
| | | set(STABLE_DIFFUSION_LIB ${CMAKE_SOURCE_DIR}/external/stable-diffusion.cpp/${CMAKE_BUILD_TYPE}/lib/stable-diffusion.lib) |
| | |
| | | $<TARGET_FILE_DIR:sd.ui>) # <--this is out-file path0 |
| | | |
| | | |
| | | |
| | | ENDIF(MSVC) |
| | | |
| | | set(OpenCV_DIR "${VCPKG_INSTALLED_DIR}/x64-windows/share/opencv4") |
| | |
| | | # target_link_libraries(sd.ui ${OpenCV_LIBS} ) |
| | | endif() |
| | | |
| | | find_package(restclient-cpp CONFIG REQUIRED) |
| | | find_package(fmt CONFIG REQUIRED) |
| | | find_package(wxWidgets CONFIG REQUIRED) |
| | | find_package(nlohmann_json CONFIG REQUIRED) |
| | |
| | | |
| | | target_link_libraries(sd.ui ${CUDA_LIBRARIES}) |
| | | |
| | | target_link_libraries(sd.ui PRIVATE ${OpenCV_LIBS} nlohmann_json::nlohmann_json fmt::fmt wx::core wx::base wx::xrc wx::adv wx::richtext wx::aui SDLIB GGMLLIB CUDA::cudart CUDA::cublas CUDA::cublasLt CUDA::cuda_driver) |
| | | target_link_libraries(sd.ui PRIVATE restclient-cpp ${OpenCV_LIBS} nlohmann_json::nlohmann_json fmt::fmt wx::core wx::base wx::xrc wx::adv wx::richtext wx::aui SDLIB GGMLLIB CUDA::cudart CUDA::cublas CUDA::cublasLt CUDA::cuda_driver) |
| | | |
| | | include_directories(ui) |
| | | |