Initial attempt at parsing commit requests
This commit is contained in:
@@ -38,10 +38,12 @@ FetchContent_MakeAvailable(nanobench)
|
||||
|
||||
include_directories(src)
|
||||
|
||||
set(SOURCES src/main.cpp src/config.cpp)
|
||||
find_package(weaseljson REQUIRED)
|
||||
|
||||
set(SOURCES src/main.cpp src/config.cpp src/commit_request.cpp)
|
||||
|
||||
add_executable(weaseldb ${SOURCES})
|
||||
target_link_libraries(weaseldb Threads::Threads toml11::toml11)
|
||||
target_link_libraries(weaseldb Threads::Threads toml11::toml11 weaseljson)
|
||||
|
||||
enable_testing()
|
||||
|
||||
@@ -49,9 +51,15 @@ 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_executable(test_commit_request tests/test_commit_request.cpp
|
||||
src/commit_request.cpp)
|
||||
target_link_libraries(test_commit_request doctest::doctest weaseljson)
|
||||
target_include_directories(test_commit_request PRIVATE src)
|
||||
|
||||
add_executable(bench_arena_allocator benchmarks/bench_arena_allocator.cpp)
|
||||
target_link_libraries(bench_arena_allocator nanobench)
|
||||
target_include_directories(bench_arena_allocator PRIVATE src)
|
||||
|
||||
add_test(NAME arena_allocator_tests COMMAND test_arena_allocator)
|
||||
add_test(NAME commit_request_tests COMMAND test_commit_request)
|
||||
add_test(NAME arena_allocator_benchmarks COMMAND bench_arena_allocator)
|
||||
|
||||
Reference in New Issue
Block a user