diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-25 14:08:23 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-25 14:08:23 +0200 |
| commit | 9ec62f964df0070cb13df4e1de3d52dc7f27189b (patch) | |
| tree | dba1f0323d270890a0d4887511a984fa892d2827 /CMakeLists.txt | |
| parent | d8f7672230aa411807caa93e38fee8876bf00c8f (diff) | |
| download | turns-9ec62f964df0070cb13df4e1de3d52dc7f27189b.tar.xz turns-9ec62f964df0070cb13df4e1de3d52dc7f27189b.zip | |
build: add nlohmann json
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 11 |
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}") |
