distributed files to src/
directory
This commit is contained in:
parent
01b90fe0ef
commit
8784bb2ce3
|
@ -13,9 +13,14 @@ set(CMAKE_CXX_STANDARD 17)
|
|||
include(CTest)
|
||||
enable_testing()
|
||||
|
||||
add_library(kNCurses Window.cpp PtyWindow.cpp SingleUserInput.cpp Debug.cpp
|
||||
TilingWindowManager.cpp VerticalTilingWindowManager.cpp
|
||||
HorizontalTilingWindowManager.cpp)
|
||||
add_library(kNCurses src/krikkel/NCurses/Window.cpp
|
||||
src/krikkel/NCurses/PtyWindow.cpp
|
||||
src/krikkel/NCurses/SingleUserInput.cpp
|
||||
src/krikkel/NCurses/TilingWindowManager.cpp
|
||||
src/krikkel/NCurses/VerticalTilingWindowManager.cpp
|
||||
src/krikkel/NCurses/HorizontalTilingWindowManager.cpp
|
||||
src/krikkel/Debug.cpp
|
||||
)
|
||||
|
||||
### let's be annoyingly pedantic
|
||||
target_compile_options(kNCurses PRIVATE "-Wall" "-Wextra" "-Werror" "-pedantic")
|
||||
|
@ -44,7 +49,8 @@ find_package(Threads REQUIRED)
|
|||
target_link_libraries(kNCurses Threads::Threads)
|
||||
|
||||
### demo application
|
||||
add_executable(kNCursesDemoApp main.cpp DemoApp.cpp)
|
||||
add_executable(kNCursesDemoApp src/krikkel/NCurses/main.cpp
|
||||
src/krikkel/NCurses/DemoApp.cpp)
|
||||
target_compile_options(kNCursesDemoApp PRIVATE "-Wall" "-Wextra" "-Werror" "-pedantic")
|
||||
target_link_libraries(kNCursesDemoApp kNCurses)
|
||||
|
||||
|
|
4
include/kNCurses/README.md
Normal file
4
include/kNCurses/README.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
## Rational
|
||||
|
||||
The include files are part of the exposed part of the library. Thus they are
|
||||
kept separate from the actual source.
|
|
@ -7,7 +7,7 @@
|
|||
#include "kNCurses/HorizontalTilingWindowManager.hpp"
|
||||
#include "kNCurses/Window.hpp"
|
||||
#include "kNCurses/PtyWindow.hpp"
|
||||
#include "Debug.hpp"
|
||||
#include "../Debug.hpp"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <utmp.h>
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include "kNCurses/HorizontalTilingWindowManager.hpp"
|
||||
#include "kNCurses/Window.hpp"
|
||||
#include "Debug.hpp"
|
||||
#include "../Debug.hpp"
|
||||
|
||||
#include <ncursesw/ncurses.h>
|
||||
#include <algorithm>
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
|
||||
#include "kNCurses/PtyWindow.hpp"
|
||||
#include "Debug.hpp"
|
||||
#include "../Debug.hpp"
|
||||
|
||||
#include <cstdio>
|
||||
#include <unistd.h>
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
|
||||
#include "kNCurses/SingleUserInput.hpp"
|
||||
#include "Debug.hpp"
|
||||
#include "../Debug.hpp"
|
||||
|
||||
#include <vterm.h>
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include "kNCurses/TilingWindowManager.hpp"
|
||||
#include "kNCurses/Window.hpp"
|
||||
#include "Debug.hpp"
|
||||
#include "../Debug.hpp"
|
||||
|
||||
#include <ncursesw/ncurses.h>
|
||||
#include <algorithm>
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include "kNCurses/VerticalTilingWindowManager.hpp"
|
||||
#include "kNCurses/Window.hpp"
|
||||
#include "Debug.hpp"
|
||||
#include "../Debug.hpp"
|
||||
|
||||
#include <ncursesw/ncurses.h>
|
||||
#include <algorithm>
|
Loading…
Reference in a new issue