Skip to content

Add installation and packaging targets#7

Closed
aaronsch0 wants to merge 1 commit intoSimulation-Software-Engineering:mainfrom
aaronsch0:main
Closed

Add installation and packaging targets#7
aaronsch0 wants to merge 1 commit intoSimulation-Software-Engineering:mainfrom
aaronsch0:main

Conversation

@aaronsch0
Copy link

This PR adds installation targets and CPack configuration to generate .tar.gz and .deb packages.

How to test

  1. Build the Docker image.
  2. Run cmake .. and make package in the build directory.
  3. Install the package using apt install ./cpackexample_0.1.0_arm64.deb.
  4. Run cpackexample.

Optional Tasks Completed

  • Dependencies: Enabled CPACK_DEBIAN_PACKAGE_SHLIBDEPS to automatically detect shared library dependencies.
  • Naming Scheme: Enabled CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT" for correct Debian naming conventions.
  • Stripping: Enabled CPACK_STRIP_FILES to reduce package size.

Verification Results

Size Comparison:

  • Unstripped: 4.5M
  • Stripped: 2.5M

Lintian Output (Final):
E: cpackexample: extended-description-is-empty
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]

(The error unstripped-binary-or-object was successfully removed by enabling stripping.)

Copy link
Member

@uekerman uekerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

Minor: The sizes (before and after stripping) relate to a debug build. When packaging a code, one typically uses a release build, which has much smaller size.

@uekerman uekerman closed this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants