Commit 548db4c6 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Add new json library to ITABase

parent ba3e356d
......@@ -61,7 +61,11 @@ endif ()
option (ITA_BASE_WITH_JSON_SUPPORT OFF "Build ITA Base with JSON support")
if (ITA_BASE_WITH_JSON_SUPPORT)
add_definitions (-DWITH_JSON_SUPPORT)
target_compile_definitions ( ${PROJECT_NAME} PUBLIC WITH_JSON_SUPPORT)
target_link_libraries (
${PROJECT_NAME}
PRIVATE nlohmann_json::nlohmann_json
)
endif ()
if (ITA_BASE_WITH_OLD_RAVEN_OPS)
......
......@@ -370,3 +370,10 @@ if (ITA_BASE_WITH_REGULAR_EXPRESSIONS)
)
endif ()
CPMAddPackage (
NAME nlohmann_json
GITHUB_REPOSITORY nlohmann/json
VERSION 3.10.1
OPTIONS "JSON_BuildTests OFF"
)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment