Add arena allocator
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user