summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
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}")