2023-04-18 21:33:40 +00:00
|
|
|
cmake_minimum_required(VERSION 3.26.3)
|
|
|
|
|
|
|
|
include(FetchContent)
|
|
|
|
|
|
|
|
set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE)
|
|
|
|
FetchContent_Declare(ftxui
|
|
|
|
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
|
|
|
|
GIT_TAG v3.0.0
|
|
|
|
)
|
|
|
|
|
|
|
|
FetchContent_GetProperties(ftxui)
|
|
|
|
if(NOT ftxui_POPULATED)
|
|
|
|
FetchContent_Populate(ftxui)
|
|
|
|
add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
project(vis
|
|
|
|
VERSION 1.0
|
|
|
|
DESCRIPTION "Vi Scheduler (vis) is a simple TUI program built for managing your schedules in a calendar-like grid."
|
2023-05-13 19:30:01 +00:00
|
|
|
LANGUAGES CXX C)
|
2023-04-18 21:33:40 +00:00
|
|
|
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
|
|
|
|
|
2023-04-22 09:42:54 +00:00
|
|
|
add_subdirectory(src)
|
2023-04-19 18:57:41 +00:00
|
|
|
|
|
|
|
find_library(NCURSES_LIB NAMES ncurses)
|
|
|
|
target_link_libraries(vis ncurses)
|