From 2409734e89a52e91dd20e3b23b920dc58cf3e92b Mon Sep 17 00:00:00 2001 From: zhenyan121 <3367366583@qq.com> Date: Fri, 24 Apr 2026 10:21:26 +0800 Subject: [PATCH] chore: add toml++ library --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9404ad..61c7d42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,12 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(soil2) - +FetchContent_Declare( + tomlplusplus + GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git + GIT_TAG v3.4.0 +) +FetchContent_MakeAvailable(tomlplusplus) set(INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include) add_executable(${PROJECT_NAME} @@ -136,6 +141,7 @@ target_link_libraries(${PROJECT_NAME} OpenGL::GL soil2 Freetype::Freetype + tomlplusplus::tomlplusplus ) if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")