Add arena allocator

This commit is contained in:
2025-08-14 11:15:48 -04:00
parent a2eef4ce25
commit b45fd1d29e
3 changed files with 380 additions and 0 deletions

View File

@@ -22,9 +22,24 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(toml11)
FetchContent_Declare(
doctest
GIT_REPOSITORY https://github.com/doctest/doctest.git
GIT_TAG 1da23a3e8119ec5cce4f9388e91b065e20bf06f5 # v2.4.12
)
FetchContent_MakeAvailable(doctest)
include_directories(src)
set(SOURCES src/main.cpp src/config.cpp)
add_executable(weaseldb ${SOURCES})
target_link_libraries(weaseldb Threads::Threads toml11::toml11)
enable_testing()
add_executable(test_arena_allocator tests/test_arena_allocator.cpp)
target_link_libraries(test_arena_allocator doctest::doctest)
target_include_directories(test_arena_allocator PRIVATE src)
add_test(NAME arena_allocator_tests COMMAND test_arena_allocator)