Added nlohmann/json

This commit is contained in:
2025-12-24 20:54:53 +08:00
parent f89c20af6a
commit 19be826869
2 changed files with 10 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ target_link_libraries(${PROJECT_NAME}
SDL3::SDL3
SDL3_ttf::SDL3_ttf
SDL3_image::SDL3_image
nlohmann_json::nlohmann_json
)
# ========== Windows: 复制 DLL ==========

View File

@@ -35,4 +35,12 @@ FetchContent_Declare(
GIT_TAG release-3.2.0
)
FetchContent_MakeAvailable(SDL3_image)
FetchContent_MakeAvailable(SDL3_image)
FetchContent_Declare(
nlohmann_json
GIT_REPOSITORY https://github.com/nlohmann/json.git
GIT_TAG v3.12.0
)
FetchContent_MakeAvailable(nlohmann_json)