Add configuration from toml file

This commit is contained in:
2025-08-14 10:59:10 -04:00
parent 2106a336aa
commit a2eef4ce25
6 changed files with 292 additions and 3 deletions

View File

@@ -14,9 +14,17 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
find_package(Threads REQUIRED)
include(FetchContent)
FetchContent_Declare(
toml11
GIT_REPOSITORY https://github.com/ToruNiina/toml11.git
GIT_TAG be08ba2be2a964edcdb3d3e3ea8d100abc26f286 # v4.4.0
)
FetchContent_MakeAvailable(toml11)
include_directories(src)
set(SOURCES src/main.cpp)
set(SOURCES src/main.cpp src/config.cpp)
add_executable(weaseldb ${SOURCES})
target_link_libraries(weaseldb Threads::Threads)
target_link_libraries(weaseldb Threads::Threads toml11::toml11)