renamed to project to kNCurses
This commit is contained in:
parent
b723aa5f33
commit
1357a7f6bf
8
.vscode/launch.json
vendored
8
.vscode/launch.json
vendored
|
@ -5,10 +5,10 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "(gdb) start NCursesDemoApp",
|
"name": "(gdb) start kNCursesDemoApp",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/build/NCursesDemoApp",
|
"program": "${workspaceFolder}/build/kNCursesDemoApp",
|
||||||
"args": [],
|
"args": [],
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
|
@ -29,10 +29,10 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "(gdb) attach to running NCursesDemoApp",
|
"name": "(gdb) attach to running kNCursesDemoApp",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"program": "${workspaceFolder}/build/NCursesDemoApp",
|
"program": "${workspaceFolder}/build/kNCursesDemoApp",
|
||||||
"processId": "${command:pickProcess}",
|
"processId": "${command:pickProcess}",
|
||||||
"MIMode": "gdb",
|
"MIMode": "gdb",
|
||||||
"setupCommands": [
|
"setupCommands": [
|
||||||
|
|
6
App.cpp
6
App.cpp
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
#include "App.hpp"
|
#include "App.hpp"
|
||||||
#include "Debug.hpp"
|
#include "Debug.hpp"
|
||||||
#include <NCurses/VerticalTilingWindowManager.hpp>
|
#include <kNCurses/VerticalTilingWindowManager.hpp>
|
||||||
#include <NCurses/Window.hpp>
|
#include <kNCurses/Window.hpp>
|
||||||
#include <NCurses/PtyWindow.hpp>
|
#include <kNCurses/PtyWindow.hpp>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <utmp.h>
|
#include <utmp.h>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
cmake_minimum_required(VERSION 3.16.3)
|
cmake_minimum_required(VERSION 3.16.3)
|
||||||
|
|
||||||
include("cmake/version.cmake")
|
include("cmake/version.cmake")
|
||||||
project(NCurses
|
project(kNCurses
|
||||||
HOMEPAGE_URL "https://gitea.xndr.de/christian/NCursesPtyWindow"
|
HOMEPAGE_URL "https://gitea.xndr.de/christian/NCursesPtyWindow"
|
||||||
VERSION ${SEMANTIC_VERSION})
|
VERSION ${SEMANTIC_VERSION})
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD 17)
|
||||||
include(CTest)
|
include(CTest)
|
||||||
enable_testing()
|
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
|
### path to own system includes
|
||||||
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/include")
|
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/include")
|
||||||
|
@ -21,34 +21,34 @@ include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/include")
|
||||||
### libraries
|
### libraries
|
||||||
|
|
||||||
include("cmake/ncurses.cmake")
|
include("cmake/ncurses.cmake")
|
||||||
target_link_libraries(NCurses ${CURSES_LIBRARIES})
|
target_link_libraries(kNCurses ${CURSES_LIBRARIES})
|
||||||
|
|
||||||
include("cmake/gsl.cmake")
|
include("cmake/gsl.cmake")
|
||||||
|
|
||||||
include("cmake/libvterm.cmake")
|
include("cmake/libvterm.cmake")
|
||||||
if(EXISTS libvtermProject)
|
if(EXISTS libvtermProject)
|
||||||
add_dependencies(NCurses libvtermProject)
|
add_dependencies(kNCurses libvtermProject)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(NCurses ${LIBVTERM_LIBRARY})
|
target_link_libraries(kNCurses ${LIBVTERM_LIBRARY})
|
||||||
|
|
||||||
find_library(UTIL_LIBRARY util)
|
find_library(UTIL_LIBRARY util)
|
||||||
target_link_libraries(NCurses ${UTIL_LIBRARY})
|
target_link_libraries(kNCurses ${UTIL_LIBRARY})
|
||||||
|
|
||||||
set(THREADS_PREFER_PTHREAD_FLAG true)
|
set(THREADS_PREFER_PTHREAD_FLAG true)
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
target_link_libraries(NCurses Threads::Threads)
|
target_link_libraries(kNCurses Threads::Threads)
|
||||||
|
|
||||||
### demo application
|
### demo application
|
||||||
add_executable(NCursesDemoApp main.cpp App.cpp)
|
add_executable(kNCursesDemoApp main.cpp App.cpp)
|
||||||
target_link_libraries(NCursesDemoApp NCurses)
|
target_link_libraries(kNCursesDemoApp kNCurses)
|
||||||
|
|
||||||
### installation and packaging
|
### installation and packaging
|
||||||
set(NCURSES_SYSTEM_INCLUDE "include/NCurses")
|
set(NCURSES_SYSTEM_INCLUDE "include/kNCurses")
|
||||||
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_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}")
|
VERSION "${CMAKE_PROJECT_VERSION}")
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
install(TARGETS NCurses ARCHIVE
|
install(TARGETS kNCurses ARCHIVE
|
||||||
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/NCurses/")
|
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/kNCurses/")
|
||||||
|
|
||||||
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
||||||
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @author Christian Burger (christian@krikkel.de)
|
* @author Christian Burger (christian@krikkel.de)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <NCurses/PtyWindow.hpp>
|
#include <kNCurses/PtyWindow.hpp>
|
||||||
#include "Debug.hpp"
|
#include "Debug.hpp"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @author Christian Burger (christian@krikkel.de)
|
* @author Christian Burger (christian@krikkel.de)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <NCurses/SingleUserInput.hpp>
|
#include <kNCurses/SingleUserInput.hpp>
|
||||||
#include "Debug.hpp"
|
#include "Debug.hpp"
|
||||||
|
|
||||||
#include <vterm.h>
|
#include <vterm.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
* @author Christian Burger (christian@krikkel.de)
|
* @author Christian Burger (christian@krikkel.de)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <NCurses/VerticalTilingWindowManager.hpp>
|
#include <kNCurses/VerticalTilingWindowManager.hpp>
|
||||||
#include <NCurses/Window.hpp>
|
#include <kNCurses/Window.hpp>
|
||||||
#include <ncursesw/ncurses.h>
|
#include <ncursesw/ncurses.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
* @author Christian Burger (christian@krikkel.de)
|
* @author Christian Burger (christian@krikkel.de)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <NCurses/Window.hpp>
|
#include <kNCurses/Window.hpp>
|
||||||
#include <NCurses/VerticalTilingWindowManager.hpp>
|
#include <kNCurses/VerticalTilingWindowManager.hpp>
|
||||||
|
|
||||||
namespace krikkel::NCurses
|
namespace krikkel::NCurses
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue