consistent naming of project NCursesPtyWindow

This commit is contained in:
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;