build: deploy Qt runtime for Windows builds

Run windeployqt as a post-build step for Schedule, copy MinGW runtime DLLs, and place Windows test binaries next to the deployed Qt runtime.
This commit is contained in:
Misaki
2026-10-26 14:54:22 +08:00
parent 059fd721ba
commit 555371a4e0
4 changed files with 73 additions and 2 deletions
+8
View File
@@ -43,3 +43,11 @@ if(TARGET schedule-sync-server)
ENVIRONMENT "SCHEDULE_SYNC_SERVER_BIN=${CMAKE_BINARY_DIR}/bin/schedule-sync-server${CMAKE_EXECUTABLE_SUFFIX}"
)
endif()
if(WIN32)
set_target_properties(
test_storage test_services test_grid test_mainwindow test_compactwindow
test_config test_scheduler test_ai test_openai_provider test_sync_integration
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
endif()