From 0a916fe01ae53ef194a1187f68dd23a418437797 Mon Sep 17 00:00:00 2001 From: Christian Burger Date: Mon, 18 Apr 2022 22:59:36 +0200 Subject: [PATCH] made package (.deb and .tar.gz) --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 225cad0..e9e21c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,15 @@ target_link_libraries(NCursesPtyWindow Threads::Threads) add_executable(NCursesPtyApp main.cpp App.cpp) target_link_libraries(NCursesPtyApp ${CURSES_LIBRARIES} NCursesPtyWindow) +### installation and packaging +set_target_properties(NCursesPtyWindow PROPERTIES PUBLIC_HEADER "Window.hpp;SingleUserInput.hpp") +install(TARGETS NCursesPtyWindow ARCHIVE PUBLIC_HEADER) + set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) +set(CPACK_PACKAGE_CONTACT "Christian Burger ") +set(CPACK_PACKAGE_DESCRIPTION "Library for a pseudo terminal where the host end is a ncurses window") + +set(CPACK_GENERATOR "DEB" "TGZ") +set(CPACK_DEBIAN_PACKAGE_DEPENDS "libncursesw6 (>=6.2), libvterm-dev (>= 0.1.2)") include(CPack)