Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION "3.28")

project("cpackexample" VERSION 0.1.0)
project("cpackexample" VERSION 0.1.2)

FIND_PACKAGE(deal.II 9.5 REQUIRED
HINTS ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
Expand All @@ -20,3 +20,25 @@ target_link_libraries(cpackexamplelib Boost::filesystem ${YAML_CPP_LIBRARIES})

DEAL_II_SETUP_TARGET("${PROJECT_NAME}")
DEAL_II_SETUP_TARGET(cpackexamplelib)

# Additions for exercise

install(TARGETS cpackexample
RUNTIME DESTINATION bin
)

install(TARGETS cpackexamplelib
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION lib
)

install(FILES
fem/fem.hpp
filesystem/filesystem.hpp
flatset/flatset.hpp
yamlParser/yamlParser.hpp
DESTINATION include/cpackexamplelib
)

include(cmake/CPackConfig.cmake)
30 changes: 30 additions & 0 deletions cmake/CPackConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
include(InstallRequiredSystemLibraries)

set(CPACK_PACKAGE_NAME "cpackexample")
set(CPACK_PACKAGE_VENDOR "Jelitaw")
set(CPACK_PACKAGE_CONTACT "st167417@stud.uni-stuttgart.de")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "exercise for CPack, inluding a small library and executable")
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}")
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")

set(CPACK_GENERATOR "TGZ;DEB")

set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Jelitaw <st167417@stud.uni-stuttgart.de>")
set(CPACK_DEBIAN_PACKAGE_VENDOR "${CPACK_PACKAGE_VENDOR}")
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/Jelitaw/cpack-exercise-wt2526")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION
"This long description is about an exercise for CPack;

This package contains the cpackexamplelib library and the
cpackexample executable used in the SSE packaging exercise.")

set(CPACK_STRIP_FILES ON)

set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CMAKE_SYSTEM_PROCESSOR}")

include(CPack)
3 changes: 3 additions & 0 deletions lintian-report-final.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
E: cpackexample: no-changelog usr/share/doc/cpackexample/changelog.gz (native package)
E: cpackexample: no-copyright-file
W: cpackexample: no-manual-page [usr/bin/cpackexample]
4 changes: 4 additions & 0 deletions lintian-report-intermediate.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
E: cpackexample: description-synopsis-is-duplicated line 1
E: cpackexample: no-changelog usr/share/doc/cpackexample/changelog.gz (native package)
E: cpackexample: no-copyright-file
W: cpackexample: no-manual-page [usr/bin/cpackexample]
9 changes: 9 additions & 0 deletions lintian-report_initial.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
E: cpackexample: bad-version-number ..
E: cpackexample: extended-description-is-empty
E: cpackexample: extended-description-is-empty
E: cpackexample: no-changelog usr/share/doc/cpackexample/changelog.gz (native package)
E: cpackexample: no-changelog usr/share/doc/cpackexample/changelog.gz (native package)
E: cpackexample: no-copyright-file
E: cpackexample: no-copyright-file
W: cpackexample: no-manual-page [usr/bin/cpackexample]
W: cpackexample: no-manual-page [usr/bin/cpackexample]