distributed files to src/ directory

This commit is contained in:
Christian Burger 2022-05-28 13:19:16 +02:00
parent 01b90fe0ef
commit 8784bb2ce3
13 changed files with 20 additions and 10 deletions

View file

@ -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)

View 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.

View file

@ -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>

View file

@ -4,7 +4,7 @@
#include "kNCurses/HorizontalTilingWindowManager.hpp"
#include "kNCurses/Window.hpp"
#include "Debug.hpp"
#include "../Debug.hpp"
#include <ncursesw/ncurses.h>
#include <algorithm>

View file

@ -3,7 +3,7 @@
*/
#include "kNCurses/PtyWindow.hpp"
#include "Debug.hpp"
#include "../Debug.hpp"
#include <cstdio>
#include <unistd.h>

View file

@ -3,7 +3,7 @@
*/
#include "kNCurses/SingleUserInput.hpp"
#include "Debug.hpp"
#include "../Debug.hpp"
#include <vterm.h>

View file

@ -4,7 +4,7 @@
#include "kNCurses/TilingWindowManager.hpp"
#include "kNCurses/Window.hpp"
#include "Debug.hpp"
#include "../Debug.hpp"
#include <ncursesw/ncurses.h>
#include <algorithm>

View file

@ -4,7 +4,7 @@
#include "kNCurses/VerticalTilingWindowManager.hpp"
#include "kNCurses/Window.hpp"
#include "Debug.hpp"
#include "../Debug.hpp"
#include <ncursesw/ncurses.h>
#include <algorithm>