thirdparty: add nlohmann/json

This commit is contained in:
James R 2023-04-26 16:11:25 -07:00
parent d2ca5d6506
commit 7ed356d620
3 changed files with 10 additions and 0 deletions

View file

@ -254,6 +254,8 @@ if(SRB2_CONFIG_ENABLE_WEBM_MOVIES)
target_compile_definitions(SRB2SDL2 PRIVATE -DSRB2_CONFIG_ENABLE_WEBM_MOVIES)
endif()
target_link_libraries(SRB2SDL2 PRIVATE nlohmann_json::nlohmann_json)
set(SRB2_HAVE_THREADS ON)
target_compile_definitions(SRB2SDL2 PRIVATE -DHAVE_THREADS)

View file

@ -34,6 +34,8 @@ if (SRB2_CONFIG_ENABLE_WEBM_MOVIES)
include("cpm-libyuv.cmake")
endif()
include("cpm-nlohmann-json.cmake")
add_subdirectory(tcbrindle_span)
add_subdirectory(stb_vorbis)
add_subdirectory(stb_rect_pack)

6
thirdparty/cpm-nlohmann-json.cmake vendored Normal file
View file

@ -0,0 +1,6 @@
CPMAddPackage(
NAME nlohmann_json
VERSION 3.11.2
URL "https://github.com/nlohmann/json/releases/download/v3.11.2/json.tar.xz"
EXCLUDE_FROM_ALL ON
)