From c6d62059ae7fb314db52f1b25b931e0a8657c500 Mon Sep 17 00:00:00 2001 From: Timofey Date: Wed, 10 Aug 2022 22:01:53 +0300 Subject: [PATCH] Add cppshell lib --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fec854..1f095a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,5 +8,14 @@ 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) install(TARGETS clippy_terminal DESTINATION bin) + +include(FetchContent) +FetchContent_Declare( + cppshell + GIT_REPOSITORY https://gitlab.com/Onyad/cppshell + GIT_TAG origin/main +) +FetchContent_MakeAvailable(cppshell)