cmake_minimum_required(VERSION 3.8)
project(json_vendor)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(<dependency> REQUIRED)

include(FetchContent)
FetchContent_Declare(
  json_vendor
  URL https://github.com/nlohmann/json/archive/refs/tags/v3.12.0.tar.gz
)

set(CMAKE_BUILD_TYPE Release)
set(JSON_BuildTests OFF CACHE BOOL "JSON_BuildTests" FORCE)
set(JSON_Install ON CACHE BOOL "JSON_Install" FORCE)

FetchContent_MakeAvailable(json_vendor)

