consistent naming of project `NCursesPtyWindow`

Gentoo
Christian Burger 2022-04-05 10:28:10 +02:00
parent e9ef61f7ae
commit 2171a3daa4
7 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16.3)
project(NCursesPty VERSION 0.1.0)
project(NCursesPtyWindow VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 17)
@ -14,17 +14,17 @@ include("cmake/gsl.cmake")
find_library(LIBVTERM_LIBRARY vterm)
find_library(UTIL_LIBRARY util)
add_library(NCursesPty NCursesPtyWindow.cpp Debug.cpp)
target_link_libraries(NCursesPty ${CURSES_LIBRARIES} ${LIBVTERM_LIBRARY} ${UTIL_LIBRARY})
add_library(NCursesPtyWindow NCursesPtyWindow.cpp Debug.cpp)
target_link_libraries(NCursesPtyWindow ${CURSES_LIBRARIES} ${LIBVTERM_LIBRARY} ${UTIL_LIBRARY})
### threads
set(THREADS_PREFER_PTHREAD_FLAG true)
find_package(Threads REQUIRED)
target_link_libraries(NCursesPty Threads::Threads)
target_link_libraries(NCursesPtyWindow Threads::Threads)
### demo application
add_executable(NCursesPtyApp main.cpp NCursesPtyApp.cpp)
target_link_libraries(NCursesPtyApp ${CURSES_LIBRARIES} NCursesPty)
target_link_libraries(NCursesPtyApp ${CURSES_LIBRARIES} NCursesPtyWindow)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})

View File

@ -10,7 +10,7 @@
#include <utmp.h>
#include <cstdlib>
namespace krikkel::NCursesPty
namespace krikkel::NCursesPtyWindow
{
NCursesPtyApp::NCursesPtyApp() : NCursesApplication(false)
{

View File

@ -8,7 +8,7 @@
#include <cursesapp.h>
namespace krikkel::NCursesPty
namespace krikkel::NCursesPtyWindow
{
class NCursesPtyApp : public NCursesApplication
{

View File

@ -12,7 +12,7 @@
#include <cctype>
#include <termios.h>
namespace krikkel::NCursesPty
namespace krikkel::NCursesPtyWindow
{
using gsl::narrow;

View File

@ -15,7 +15,7 @@ inline void UNDEF(add_wch)(const cchar_t *character) { add_wch(character); }
#define add_wch UNDEF(add_wch)
#endif
namespace krikkel::NCursesPty
namespace krikkel::NCursesPtyWindow
{
class NCursesPtyWindow : public NCursesWindow
{

View File

@ -3,7 +3,7 @@
**WARNING**: This is a prototype. Things will probably break; in spectacular
ways.
`NCursesPty` provides a pseudo terminal in a ncurses window.
`NCursesPtyWindow` provides a pseudo terminal in a ncurses window.
## Building

View File

@ -6,4 +6,4 @@
#include "NCursesPtyApp.hpp"
krikkel::NCursesPty::NCursesPtyApp cursesPtyApp;
krikkel::NCursesPtyWindow::NCursesPtyApp cursesPtyApp;