mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
thirdparty: add nlohmann/json
This commit is contained in:
parent
d2ca5d6506
commit
7ed356d620
3 changed files with 10 additions and 0 deletions
|
|
@ -254,6 +254,8 @@ if(SRB2_CONFIG_ENABLE_WEBM_MOVIES)
|
||||||
target_compile_definitions(SRB2SDL2 PRIVATE -DSRB2_CONFIG_ENABLE_WEBM_MOVIES)
|
target_compile_definitions(SRB2SDL2 PRIVATE -DSRB2_CONFIG_ENABLE_WEBM_MOVIES)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
target_link_libraries(SRB2SDL2 PRIVATE nlohmann_json::nlohmann_json)
|
||||||
|
|
||||||
set(SRB2_HAVE_THREADS ON)
|
set(SRB2_HAVE_THREADS ON)
|
||||||
target_compile_definitions(SRB2SDL2 PRIVATE -DHAVE_THREADS)
|
target_compile_definitions(SRB2SDL2 PRIVATE -DHAVE_THREADS)
|
||||||
|
|
||||||
|
|
|
||||||
2
thirdparty/CMakeLists.txt
vendored
2
thirdparty/CMakeLists.txt
vendored
|
|
@ -34,6 +34,8 @@ if (SRB2_CONFIG_ENABLE_WEBM_MOVIES)
|
||||||
include("cpm-libyuv.cmake")
|
include("cpm-libyuv.cmake")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
include("cpm-nlohmann-json.cmake")
|
||||||
|
|
||||||
add_subdirectory(tcbrindle_span)
|
add_subdirectory(tcbrindle_span)
|
||||||
add_subdirectory(stb_vorbis)
|
add_subdirectory(stb_vorbis)
|
||||||
add_subdirectory(stb_rect_pack)
|
add_subdirectory(stb_rect_pack)
|
||||||
|
|
|
||||||
6
thirdparty/cpm-nlohmann-json.cmake
vendored
Normal file
6
thirdparty/cpm-nlohmann-json.cmake
vendored
Normal 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
|
||||||
|
)
|
||||||
Loading…
Add table
Reference in a new issue