From 1b655704ee24974e78e3821df3c7d33c6880dc0b Mon Sep 17 00:00:00 2001 From: Timofey Khoruzhii Date: Sun, 16 Apr 2023 00:57:19 +0300 Subject: [PATCH] add yaml require --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 60e2ec1..b0cd922 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 tmuxub rang jsoncons) +target_link_libraries(clippy_terminal PRIVATE cppshell tmuxub rang jsoncons yaml-cpp) install(TARGETS clippy_terminal DESTINATION bin) @@ -41,3 +41,10 @@ FetchContent_Declare( GIT_TAG origin/master ) FetchContent_MakeAvailable(jsoncons) + +FetchContent_Declare( + yaml-cpp + GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git + GIT_TAG origin/master +) +FetchContent_MakeAvailable(yaml-cpp)