diagrams-fable-qt/tests/CMakeLists.txt
Ilya Ashikhmin b257c1a7cf feat(scene): add interactive graphics scene with grid, ports and styled edges
- SVG node items with snap-to-grid dragging; ports appear on focus/hover
  and highlight compatible targets during a connection drag
- Orthogonally routed edge items with line styles, head/tail decorations
  (arrow, circle, diamond, bar), selection halo and title labels; later
  edges jump crossings with arcs when enabled
- Grid background view with cursor-anchored zoom, middle-button pan,
  rubber-band selection and palette drag-and-drop
- Undoable commands: add/move/delete/connect/property/paste with
  clipboard fragments; light/dark/high-contrast themes
- Flow overlay: animated dashes, direction and density follow flow rate

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 23:25:06 +02:00

16 lines
584 B
CMake

# Test targets are added per module; all run offscreen via ctest.
function(diag_add_test NAME)
add_executable(${NAME} ${NAME}.cpp)
target_link_libraries(${NAME} PRIVATE ${ARGN} Qt6::Test)
add_test(NAME ${NAME} COMMAND ${NAME})
set_tests_properties(${NAME} PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen")
endfunction()
diag_add_test(tst_model diagcore)
diag_add_test(tst_properties diagcore)
diag_add_test(tst_router diagcore)
diag_add_test(tst_solver diagcore)
diag_add_test(tst_json diagcore)
diag_add_test(tst_undo diagscene)
diag_add_test(tst_scene diagscene)