29 lines
694 B
CMake
29 lines
694 B
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 rang)
|
|
|
|
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(
|
|
rang
|
|
GIT_REPOSITORY https://github.com/agauniyal/rang.git
|
|
GIT_TAG origin/master
|
|
)
|
|
FetchContent_MakeAvailable(rang)
|