# A document model whose ownership graph is a tree (Document owns
# sections, sections own paragraphs), with one back-reference (paragraph
# to section) and cross-references by id (links and comments).
add_library(adv_document_model STATIC document.cpp)
target_include_directories(adv_document_model PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

lld_add_example(adv_document SOURCES main.cpp EXPECTED_OUTPUT expected_output.txt)
target_link_libraries(adv_document PRIVATE adv_document_model)

lld_add_test(adv_document_tests SOURCES tests/test_document.cpp)
target_link_libraries(adv_document_tests PRIVATE adv_document_model)
