Modules/TextEditor/CMakeLists.txt
agent e045603df8
Some checks failed
Windows / build (pull_request) Has been cancelled
CMake on a single platform / build (pull_request) Has been cancelled
CMake / build (pull_request) Has been cancelled
TextEditor: piece-tree editor on the current AVL tree
Restores the piece-table text editor from agent-work on the merged Containers
AVL tree, with the test build no longer gated behind the undefined
MODULES_BUILD_TESTS option. The module is registered in the root build.
2026-10-29 13:06:36 +03:00

13 lines
566 B
CMake

project(TextEditor)
file(GLOB SOURCES "./private/*.cpp")
file(GLOB HEADERS "./public/*.hpp")
add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADERS})
target_include_directories(${PROJECT_NAME} PUBLIC ./public/)
target_link_libraries(${PROJECT_NAME} PUBLIC Containers)
### -------------------------- Tests -------------------------- ###
file(GLOB TEST_SOURCES "./tests/*.cpp")
add_executable(Test${PROJECT_NAME} ${TEST_SOURCES})
target_link_libraries(Test${PROJECT_NAME} ${PROJECT_NAME} UnitTest++)
add_test(NAME Test${PROJECT_NAME} COMMAND Test${PROJECT_NAME})