clippy-terminal/CMakeLists.txt

51 lines
1.2 KiB
CMake
Raw Permalink Normal View History

2022-08-10 07:22:33 +00:00
cmake_minimum_required(VERSION 3.14)
project(clippy_terminal)
2022-08-10 18:51:42 +00:00
set(CMAKE_CXX_STANDARD 20)
2022-08-10 07:22:33 +00:00
file(GLOB_RECURSE SOURCES_FILES src/*)
add_executable(clippy_terminal ${SOURCES_FILES})
target_include_directories(clippy_terminal PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
2023-04-15 21:57:19 +00:00
target_link_libraries(clippy_terminal PRIVATE cppshell tmuxub rang jsoncons yaml-cpp)
2022-08-10 07:22:33 +00:00
install(TARGETS clippy_terminal DESTINATION bin)
2022-08-10 19:01:53 +00:00
include(FetchContent)
FetchContent_Declare(
cppshell
GIT_REPOSITORY https://gitlab.com/Onyad/cppshell
GIT_TAG origin/main
)
FetchContent_MakeAvailable(cppshell)
2022-08-11 18:42:53 +00:00
2023-01-09 08:42:28 +00:00
FetchContent_Declare(
tmuxub
GIT_REPOSITORY https://gitlab.com/Onyad/tmuxub
GIT_TAG origin/main
)
FetchContent_MakeAvailable(tmuxub)
2022-08-11 18:42:53 +00:00
FetchContent_Declare(
rang
GIT_REPOSITORY https://github.com/agauniyal/rang.git
GIT_TAG origin/master
)
FetchContent_MakeAvailable(rang)
2022-12-28 11:56:09 +00:00
2023-01-09 08:42:28 +00:00
set(JSONCONS_BUILD_TESTS OFF CACHE INTERNAL "Turn off tests")
2022-12-28 11:56:09 +00:00
FetchContent_Declare(
jsoncons
GIT_REPOSITORY https://github.com/danielaparker/jsoncons
GIT_TAG origin/master
)
FetchContent_MakeAvailable(jsoncons)
2023-04-15 21:57:19 +00:00
FetchContent_Declare(
yaml-cpp
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
GIT_TAG origin/master
)
FetchContent_MakeAvailable(yaml-cpp)