From 9ec62f964df0070cb13df4e1de3d52dc7f27189b Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 25 Jul 2024 14:08:23 +0200 Subject: build: add nlohmann json --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 48e97bb..b660a86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,9 +51,18 @@ FetchContent_Declare( FIND_PACKAGE_ARGS ) -FetchContent_MakeAvailable("Catch2") +FetchContent_Declare( + "nlohmann_json" + URL "https://github.com/nlohmann/json/archive/refs/tags/v3.11.3.tar.gz" + URL_HASH "SHA256=0d8ef5af7f9794e3263480193c491549b2ba6cc74bb018906202ada498a79406" + EXCLUDE_FROM_ALL + FIND_PACKAGE_ARGS +) + +FetchContent_MakeAvailable("Catch2" "nlohmann_json") find_package("Catch2" REQUIRED) +find_package("nlohmann_json" REQUIRED) pkg_check_modules("adwaita" IMPORTED_TARGET REQUIRED "libadwaita-1>=${LIBADWAITA_MINIMUM_VERSION}") pkg_check_modules("giomm" IMPORTED_TARGET REQUIRED "giomm-2.68>=${GLIB_MINIMUM_VERSION}") -- cgit v1.2.3