diagrams-fable-qt/tests/CMakeLists.txt
Ilya Ashikhmin 26905a4ba0 feat(core): add network model with typed ports, relations and grouped properties
Data-driven node types (SVG + port config) loaded from JSON, relation-based
connection validation, and a property system supporting string, int, float,
enum, catalogue item(s), color and value-list types grouped by category.

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

11 lines
412 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)