From df449a475ca0900782150b2d51ea26de5efccab1 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Thu, 30 May 2024 11:14:01 +0200 Subject: [PATCH] add json dep directly (was already indirect) --- external/CMakeLists.txt | 2 ++ external/json/CMakeLists.txt | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 external/json/CMakeLists.txt diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index cba4805..105b960 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR) add_subdirectory(./entt) +add_subdirectory(./json) + add_subdirectory(./solanaceae_util) add_subdirectory(./solanaceae_contact) add_subdirectory(./solanaceae_message3) diff --git a/external/json/CMakeLists.txt b/external/json/CMakeLists.txt new file mode 100644 index 0000000..3de2c6e --- /dev/null +++ b/external/json/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.16...3.24 FATAL_ERROR) + +include(FetchContent) + +if (NOT TARGET nlohmann_json::nlohmann_json) + FetchContent_Declare(json + URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz + URL_HASH SHA256=d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d + EXCLUDE_FROM_ALL + ) + FetchContent_MakeAvailable(json) +endif() +