Add configuration from toml file
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user