From 7b38b2a9c9da0dfb54d1b1e3afc8334034c67b69 Mon Sep 17 00:00:00 2001 From: Valentin Seitz Date: Mon, 17 Jun 2024 11:46:33 +0200 Subject: [PATCH] added nlohman json --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1434352..52ea6be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,14 @@ if(WITH_MPI) endif() +include(FetchContent) + +FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz) +FetchContent_MakeAvailable(json) + +target_link_libraries(${PROJECT_NAME} PRIVATE nlohmann_json::nlohmann_json) + + add_subdirectory(src) -- GitLab