diff --git a/CMakeLists.txt b/CMakeLists.txt index 143435246fdb8fe1737dcd4790ed3597b9b09e4c..52ea6be811ac10fa826df6fc85e006e65a9e5ff1 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)