Modules/Taskboard/CMakeLists.txt
agent b552d7c324 Port agent-work onto master
Brings the agent-work branch tip onto master, keeping master's architecture
and putting every agent-work feature on top of it: the window/GpuDevice/
RenderTarget split, explicit per-instance profilers instead of a global, the
input layer with scroll sources and ends, the Widgets core and components
(shared SelectionModel/Commands lists, popup stack, titled panels, prompt
dialogs, file browser, kanban, outline tree, markdown, docking), the gallery
on the new UI, the Objects explorer and interpreter fixes, the Taskboard, the
Sketch2D render path and its tests and bench, and the headless Wayland
runner the UI tests drive.

No MODULES_BUILD_* switches are introduced: platform differences are plain
if (ANDROID) / if (NOT ANDROID).
2026-11-02 11:00:51 +03:00

37 lines
1.8 KiB
CMake

project(Taskboard)
### -------------------------- Board Model And View -------------------------- ###
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS "./private/*.cpp")
file(GLOB_RECURSE HEADERS CONFIGURE_DEPENDS "./public/*.hpp")
add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADERS})
target_include_directories(${PROJECT_NAME} PUBLIC ./public)
target_link_libraries(${PROJECT_NAME} PUBLIC Widgets Picojson)
# The Python MCP task server ships in ./server; the app and tests launch it from this source checkout.
# Skills are versioned here too (./skills); the board's Skills tab browses and edits them in place.
target_compile_definitions(${PROJECT_NAME} PUBLIC TASKBOARD_SERVER_DIR="${CMAKE_CURRENT_SOURCE_DIR}/server")
target_compile_definitions(${PROJECT_NAME} PUBLIC TASKBOARD_SKILLS_DIR="${CMAKE_CURRENT_SOURCE_DIR}/skills")
### -------------------------- Application -------------------------- ###
if (NOT ANDROID)
add_executable(taskboardApp ./apps/Entry.cpp)
target_link_libraries(taskboardApp ${PROJECT_NAME} WidgetsApp)
modules_add_desktop_entry(taskboardApp
ID online.ilushabasic.taskboard
NAME Taskboard
COMMENT "Agent task board"
ICON ./rsc/desktop/taskboard.svg
CATEGORIES Development ProjectManagement)
graphic_application_resources(taskboardApp)
add_executable(taskboardTextBench ./bench/TextBench.cpp)
target_link_libraries(taskboardTextBench ${PROJECT_NAME} WidgetsApp)
endif ()
### -------------------------- Tests -------------------------- ###
if (NOT ANDROID)
add_executable(Test${PROJECT_NAME} ./tests/TaskBoardTests.cpp ./tests/TaskServerSyncTests.cpp ../Widgets/tests/Main.cpp)
target_include_directories(Test${PROJECT_NAME} PRIVATE ./tests/support)
target_link_libraries(Test${PROJECT_NAME} ${PROJECT_NAME} WidgetsComponentsTesting UnitTest++)
add_test(NAME Test${PROJECT_NAME} COMMAND Test${PROJECT_NAME})
endif ()