renamed to project to kNCurses

This commit is contained in:
Christian Burger 2022-05-06 22:42:09 +02:00
parent b723aa5f33
commit 1357a7f6bf
11 changed files with 26 additions and 26 deletions

8
.vscode/launch.json vendored
View file

@ -5,10 +5,10 @@
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) start NCursesDemoApp",
"name": "(gdb) start kNCursesDemoApp",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/NCursesDemoApp",
"program": "${workspaceFolder}/build/kNCursesDemoApp",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
@ -29,10 +29,10 @@
]
},
{
"name": "(gdb) attach to running NCursesDemoApp",
"name": "(gdb) attach to running kNCursesDemoApp",
"type": "cppdbg",
"request": "attach",
"program": "${workspaceFolder}/build/NCursesDemoApp",
"program": "${workspaceFolder}/build/kNCursesDemoApp",
"processId": "${command:pickProcess}",
"MIMode": "gdb",
"setupCommands": [

View file

@ -4,9 +4,9 @@
#include "App.hpp"
#include "Debug.hpp"
#include <NCurses/VerticalTilingWindowManager.hpp>
#include <NCurses/Window.hpp>
#include <NCurses/PtyWindow.hpp>
#include <kNCurses/VerticalTilingWindowManager.hpp>
#include <kNCurses/Window.hpp>
#include <kNCurses/PtyWindow.hpp>
#include <unistd.h>
#include <utmp.h>

View file

@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.16.3)
include("cmake/version.cmake")
project(NCurses
project(kNCurses
HOMEPAGE_URL "https://gitea.xndr.de/christian/NCursesPtyWindow"
VERSION ${SEMANTIC_VERSION})
@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD 17)
include(CTest)
enable_testing()
add_library(NCurses Window.cpp PtyWindow.cpp SingleUserInput.cpp Debug.cpp VerticalTilingWindowManager.cpp)
add_library(kNCurses Window.cpp PtyWindow.cpp SingleUserInput.cpp Debug.cpp VerticalTilingWindowManager.cpp)
### path to own system includes
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/include")
@ -21,34 +21,34 @@ include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/include")
### libraries
include("cmake/ncurses.cmake")
target_link_libraries(NCurses ${CURSES_LIBRARIES})
target_link_libraries(kNCurses ${CURSES_LIBRARIES})
include("cmake/gsl.cmake")
include("cmake/libvterm.cmake")
if(EXISTS libvtermProject)
add_dependencies(NCurses libvtermProject)
add_dependencies(kNCurses libvtermProject)
endif()
target_link_libraries(NCurses ${LIBVTERM_LIBRARY})
target_link_libraries(kNCurses ${LIBVTERM_LIBRARY})
find_library(UTIL_LIBRARY util)
target_link_libraries(NCurses ${UTIL_LIBRARY})
target_link_libraries(kNCurses ${UTIL_LIBRARY})
set(THREADS_PREFER_PTHREAD_FLAG true)
find_package(Threads REQUIRED)
target_link_libraries(NCurses Threads::Threads)
target_link_libraries(kNCurses Threads::Threads)
### demo application
add_executable(NCursesDemoApp main.cpp App.cpp)
target_link_libraries(NCursesDemoApp NCurses)
add_executable(kNCursesDemoApp main.cpp App.cpp)
target_link_libraries(kNCursesDemoApp kNCurses)
### installation and packaging
set(NCURSES_SYSTEM_INCLUDE "include/NCurses")
set_target_properties(NCurses PROPERTIES PUBLIC_HEADER "${NCURSES_SYSTEM_INCLUDE}/Window.hpp;${NCURSES_SYSTEM_INCLUDE}/SingleUserInput.hpp;${NCURSES_SYSTEM_INCLUDE}/PtyWindow.hpp;${NCURSES_SYSTEM_INCLUDE}/VerticalTilingWindowManager.hpp;"
set(NCURSES_SYSTEM_INCLUDE "include/kNCurses")
set_target_properties(kNCurses PROPERTIES PUBLIC_HEADER "${NCURSES_SYSTEM_INCLUDE}/Window.hpp;${NCURSES_SYSTEM_INCLUDE}/SingleUserInput.hpp;${NCURSES_SYSTEM_INCLUDE}/PtyWindow.hpp;${NCURSES_SYSTEM_INCLUDE}/VerticalTilingWindowManager.hpp;"
VERSION "${CMAKE_PROJECT_VERSION}")
include(GNUInstallDirs)
install(TARGETS NCurses ARCHIVE
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/NCurses/")
install(TARGETS kNCurses ARCHIVE
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/kNCurses/")
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})

View file

@ -2,7 +2,7 @@
* @author Christian Burger (christian@krikkel.de)
*/
#include <NCurses/PtyWindow.hpp>
#include <kNCurses/PtyWindow.hpp>
#include "Debug.hpp"
#include <cstdio>

View file

@ -2,7 +2,7 @@
* @author Christian Burger (christian@krikkel.de)
*/
#include <NCurses/SingleUserInput.hpp>
#include <kNCurses/SingleUserInput.hpp>
#include "Debug.hpp"
#include <vterm.h>

View file

@ -2,8 +2,8 @@
* @author Christian Burger (christian@krikkel.de)
*/
#include <NCurses/VerticalTilingWindowManager.hpp>
#include <NCurses/Window.hpp>
#include <kNCurses/VerticalTilingWindowManager.hpp>
#include <kNCurses/Window.hpp>
#include <ncursesw/ncurses.h>
#include <algorithm>

View file

@ -2,8 +2,8 @@
* @author Christian Burger (christian@krikkel.de)
*/
#include <NCurses/Window.hpp>
#include <NCurses/VerticalTilingWindowManager.hpp>
#include <kNCurses/Window.hpp>
#include <kNCurses/VerticalTilingWindowManager.hpp>
namespace krikkel::NCurses
{