aboutsummaryrefslogtreecommitdiff
path: root/src/tui/CMakeLists.txt
diff options
context:
space:
mode:
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)