Files
Schedule/client/src/CMakeLists.txt
T
Misaki 35cabb37b2 feat: add long-term projects with AI creation
- Add project model, schema v4, sync triggers, and server support\n- Add project panel, deadline countdown, manual create/edit/complete/delete\n- Parse AI project operations and show them in the proposal diff\n- Sync projects to Android and display them read-only\n- Rebuild AppImage and update validation docs and screenshots
2026-10-31 15:52:48 +08:00

156 lines
4.1 KiB
CMake

add_library(schedule_core STATIC
core/DateTimeUtils.cpp
core/DateTimeUtils.h
core/DailyInsights.cpp
core/DailyInsights.h
core/EnergyProfile.cpp
core/EnergyProfile.h
core/Project.h
core/ProposedDiff.h
core/Recurrence.h
core/SchedulerEngine.cpp
core/SchedulerEngine.h
core/ScheduleItem.h
core/Task.h
core/TimeBlock.h
storage/Migrations.cpp
storage/Migrations.h
storage/SqliteStore.cpp
storage/SqliteStore.h
)
target_include_directories(schedule_core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(schedule_core
PUBLIC Qt6::Core Qt6::Sql
PRIVATE schedule_warnings
)
add_library(schedule_services STATIC
services/NotificationService.cpp
services/NotificationService.h
services/ScheduleService.cpp
services/ScheduleService.h
utils/AppPaths.cpp
utils/AppPaths.h
utils/AppSettings.cpp
utils/AppSettings.h
)
target_include_directories(schedule_services PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(schedule_services
PUBLIC schedule_core Qt6::Core
PRIVATE schedule_warnings tomlplusplus
)
add_library(schedule_ai STATIC
ai/AIService.cpp
ai/AIService.h
ai/FileExtractor.cpp
ai/FileExtractor.h
ai/IAIProvider.h
ai/OpenAiProvider.cpp
ai/OpenAiProvider.h
ai/PromptLoader.cpp
ai/PromptLoader.h
ai/ScheduleProposal.h
${CMAKE_SOURCE_DIR}/client/resources/prompts.qrc
)
target_include_directories(schedule_ai PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(schedule_ai
PUBLIC schedule_services Qt6::Core Qt6::Network Qt6::Concurrent
PRIVATE schedule_warnings
)
add_library(schedule_sync STATIC
sync/SyncService.cpp
sync/SyncService.h
core/SyncTypes.h
)
target_include_directories(schedule_sync PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(schedule_sync
PUBLIC schedule_services Qt6::Core Qt6::Network Qt6::WebSockets
PRIVATE schedule_warnings
)
add_library(schedule_ui STATIC
platform/SystemTray.cpp
platform/SystemTray.h
ui/AppIcon.cpp
ui/AppIcon.h
ui/CompactWindow.cpp
ui/CompactWindow.h
ui/MainWindow.cpp
ui/MainWindow.h
ui/dialogs/BlockEditDialog.cpp
ui/dialogs/BlockEditDialog.h
ui/dialogs/DailyReviewDialog.cpp
ui/dialogs/DailyReviewDialog.h
ui/dialogs/ProjectDialog.cpp
ui/dialogs/ProjectDialog.h
ui/dialogs/SearchDialog.cpp
ui/dialogs/SearchDialog.h
ui/dialogs/SettingsDialog.cpp
ui/dialogs/SettingsDialog.h
ui/panels/ChatPanel.cpp
ui/panels/ChatPanel.h
ui/panels/DiffPreviewCard.cpp
ui/panels/DiffPreviewCard.h
ui/panels/ProjectCard.cpp
ui/panels/ProjectCard.h
ui/panels/TodayItemCard.cpp
ui/panels/TodayItemCard.h
ui/panels/TodayPanel.cpp
ui/panels/TodayPanel.h
ui/theme/AnimationUtils.cpp
ui/theme/AnimationUtils.h
ui/theme/ThemeManager.cpp
ui/theme/ThemeManager.h
ui/theme/ThemeTokens.h
ui/theme/WindowEffects.cpp
ui/theme/WindowEffects.h
ui/views/MonthView.cpp
ui/views/MonthView.h
ui/views/ScheduleGridView.cpp
ui/views/ScheduleGridView.h
ui/views/YearView.cpp
ui/views/YearView.h
)
target_include_directories(schedule_ui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(schedule_ui
PUBLIC schedule_ai schedule_sync Qt6::Widgets ElaWidgetTools
PRIVATE schedule_warnings
)
if(UNIX AND NOT APPLE)
target_link_libraries(schedule_ui PRIVATE Qt6::DBus)
endif()
qt_add_executable(Schedule
main.cpp
)
set_target_properties(Schedule PROPERTIES
WIN32_EXECUTABLE ON
MACOSX_BUNDLE ON
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
target_link_libraries(Schedule PRIVATE schedule_ui schedule_sync)
if(WIN32)
schedule_deploy_qt_runtime(Schedule)
endif()
install(TARGETS Schedule
RUNTIME DESTINATION .
BUNDLE DESTINATION .
)
if(WIN32 AND MINGW)
get_filename_component(_mingw_bin_dir "${CMAKE_CXX_COMPILER}" DIRECTORY)
file(GLOB _mingw_runtime
"${_mingw_bin_dir}/libgcc_s_*.dll"
"${_mingw_bin_dir}/libstdc++-6.dll"
"${_mingw_bin_dir}/libwinpthread-1.dll"
)
if(_mingw_runtime)
install(FILES ${_mingw_runtime} DESTINATION .)
endif()
endif()