moved library system headers to separate folder
Gave the library a version in case it is build statically.
This commit is contained in:
parent
2d7dda88c5
commit
f994cb2261
2
App.cpp
2
App.cpp
|
@ -3,8 +3,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "App.hpp"
|
#include "App.hpp"
|
||||||
#include "Window.hpp"
|
|
||||||
#include "Debug.hpp"
|
#include "Debug.hpp"
|
||||||
|
#include <NCursesPtyWindow/Window.hpp>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <utmp.h>
|
#include <utmp.h>
|
||||||
|
|
|
@ -15,6 +15,9 @@ enable_testing()
|
||||||
|
|
||||||
add_library(NCursesPtyWindow Window.cpp SingleUserInput.cpp Debug.cpp)
|
add_library(NCursesPtyWindow Window.cpp SingleUserInput.cpp Debug.cpp)
|
||||||
|
|
||||||
|
### path to own system includes
|
||||||
|
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/include")
|
||||||
|
|
||||||
### libraries
|
### libraries
|
||||||
|
|
||||||
include("cmake/ncurses.cmake")
|
include("cmake/ncurses.cmake")
|
||||||
|
@ -40,9 +43,12 @@ add_executable(NCursesPtyApp main.cpp App.cpp)
|
||||||
target_link_libraries(NCursesPtyApp NCursesPtyWindow)
|
target_link_libraries(NCursesPtyApp NCursesPtyWindow)
|
||||||
|
|
||||||
### installation and packaging
|
### installation and packaging
|
||||||
set_target_properties(NCursesPtyWindow PROPERTIES PUBLIC_HEADER "Window.hpp;SingleUserInput.hpp"
|
set(NCURSES_PTY_WINDOW_SYSTEM_INCLUDE "include/NCursesPtyWindow")
|
||||||
|
set_target_properties(NCursesPtyWindow PROPERTIES PUBLIC_HEADER "${NCURSES_PTY_WINDOW_SYSTEM_INCLUDE}/Window.hpp;${NCURSES_PTY_WINDOW_SYSTEM_INCLUDE}/SingleUserInput.hpp"
|
||||||
VERSION "${CMAKE_PROJECT_VERSION}")
|
VERSION "${CMAKE_PROJECT_VERSION}")
|
||||||
install(TARGETS NCursesPtyWindow ARCHIVE PUBLIC_HEADER)
|
include(GNUInstallDirs)
|
||||||
|
install(TARGETS NCursesPtyWindow ARCHIVE
|
||||||
|
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/NCursesPtyWindow/")
|
||||||
|
|
||||||
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 "SingleUserInput.hpp"
|
#include <NCursesPtyWindow/SingleUserInput.hpp>
|
||||||
#include "Debug.hpp"
|
#include "Debug.hpp"
|
||||||
|
|
||||||
#include <vterm.h>
|
#include <vterm.h>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @author Christian Burger (christian@krikkel.de)
|
* @author Christian Burger (christian@krikkel.de)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Window.hpp"
|
#include <NCursesPtyWindow/Window.hpp>
|
||||||
#include "Debug.hpp"
|
#include "Debug.hpp"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
Loading…
Reference in a new issue