aboutsummaryrefslogtreecommitdiff
path: root/src/tui/CMakeLists.txt
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-10-17 03:37:11 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-10-17 03:37:11 +0800
commit754006847fcfdaa68a59a2929d6c9020dd2616ed (patch)
tree9a3e8e07c60dfbdbb363754555f08ba632e581fd /src/tui/CMakeLists.txt
parenteb6509c6f3eddbd00ac59d89892209518ede53f5 (diff)
downloadrwebbrowser-754006847fcfdaa68a59a2929d6c9020dd2616ed.tar.gz
rwebbrowser-754006847fcfdaa68a59a2929d6c9020dd2616ed.tar.xz
feat(tui): add ncurses backend and session loop
Diffstat (limited to 'src/tui/CMakeLists.txt')
-rw-r--r--src/tui/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tui/CMakeLists.txt b/src/tui/CMakeLists.txt
new file mode 100644
index 0000000..908448e
--- /dev/null
+++ b/src/tui/CMakeLists.txt
@@ -0,0 +1,8 @@
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(NCURSESW REQUIRED IMPORTED_TARGET ncursesw)
+find_package(Threads REQUIRED)
+
+add_library(ricochet_tui STATIC document.cc mailbox.cc screen.cc session.cc)
+target_include_directories(ricochet_tui PUBLIC ${PROJECT_SOURCE_DIR}/include)
+target_compile_features(ricochet_tui PUBLIC cxx_std_23)
+target_link_libraries(ricochet_tui PRIVATE PkgConfig::NCURSESW Threads::Threads)