TUT/CMakeLists.txt
m1ngsama 77784f7453 feat: Modularize calendar and create TUI portal
Refactored the calendar functionality into a separate Calendar class.
Created a TUI portal in main.cpp to allow for future feature expansion.
The TUI portal provides a menu to select different features, with the calendar being the first one.
Updated the build system to include the new files.
2025-11-19 16:34:25 +08:00

25 lines
656 B
CMake
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cmake_minimum_required(VERSION 3.15)
project(NBTCA_TUI LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# 优先使用带宽字符支持的 ncurseswHomebrew 安装在 /opt/homebrew
set(CURSES_NEED_WIDE TRUE)
set(CMAKE_PREFIX_PATH "/opt/homebrew/opt/ncurses" ${CMAKE_PREFIX_PATH})
find_package(Curses REQUIRED)
find_package(CURL REQUIRED)
add_executable(nbtca_tui
src/main.cpp
src/ics_fetcher.cpp
src/ics_parser.cpp
src/tui_view.cpp
src/calendar.cpp
)
target_include_directories(nbtca_tui PRIVATE ${CURSES_INCLUDE_DIR})
target_link_libraries(nbtca_tui PRIVATE ${CURSES_LIBRARIES} CURL::libcurl)