From dbd34e0817327997fe79b8651615e5675e2baa92 Mon Sep 17 00:00:00 2001 From: Timofey Khoruzhii Date: Wed, 28 Dec 2022 14:56:09 +0300 Subject: [PATCH] add json lib --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae92603..25f0169 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ file(GLOB_RECURSE SOURCES_FILES src/*) add_executable(clippy_terminal ${SOURCES_FILES}) target_include_directories(clippy_terminal PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src) -target_link_libraries(clippy_terminal cppshell rang) +target_link_libraries(clippy_terminal cppshell rang jsoncons) install(TARGETS clippy_terminal DESTINATION bin) @@ -26,3 +26,11 @@ FetchContent_Declare( GIT_TAG origin/master ) FetchContent_MakeAvailable(rang) + +FetchContent_Declare( + jsoncons + GIT_REPOSITORY https://github.com/danielaparker/jsoncons + GIT_TAG origin/master +) +set(JSONCONS_BUILD_TESTS OFF) +FetchContent_MakeAvailable(jsoncons)