clippy-terminal/CMakeLists.txt
2023-01-09 11:42:28 +03:00

44 lines
1.1 KiB
CMake

cmake_minimum_required(VERSION 3.14)
project(clippy_terminal)
set(CMAKE_CXX_STANDARD 20)
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)
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)
FetchContent_Declare(
tmuxub
GIT_REPOSITORY https://gitlab.com/Onyad/tmuxub
GIT_TAG origin/main
)
FetchContent_MakeAvailable(tmuxub)
FetchContent_Declare(
rang
GIT_REPOSITORY https://github.com/agauniyal/rang.git
GIT_TAG origin/master
)
FetchContent_MakeAvailable(rang)
set(JSONCONS_BUILD_TESTS OFF CACHE INTERNAL "Turn off tests")
FetchContent_Declare(
jsoncons
GIT_REPOSITORY https://github.com/danielaparker/jsoncons
GIT_TAG origin/master
)
FetchContent_MakeAvailable(jsoncons)