summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt11
-rw-r--r--core/CMakeLists.txt1
2 files changed, 11 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}")
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index 034c759..9b6390c 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -23,6 +23,7 @@ target_include_directories("core" PUBLIC
target_link_libraries("core" PUBLIC
"PkgConfig::giomm"
"PkgConfig::glibmm"
+ "nlohmann_json::nlohmann_json"
)
enable_coverage("core")