chore: add toml++ library

This commit is contained in:
2026-04-24 10:21:26 +08:00
parent 8f8e2c1bd5
commit 2409734e89

View File

@@ -74,7 +74,12 @@ FetchContent_Declare(
) )
FetchContent_MakeAvailable(soil2) 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) set(INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
add_executable(${PROJECT_NAME} add_executable(${PROJECT_NAME}
@@ -136,6 +141,7 @@ target_link_libraries(${PROJECT_NAME}
OpenGL::GL OpenGL::GL
soil2 soil2
Freetype::Freetype Freetype::Freetype
tomlplusplus::tomlplusplus
) )
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")