Skip to content

Conversation

@adr1ja
Copy link

@adr1ja adr1ja commented Dec 10, 2025

Description

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

Testing Steps

  1. Build the Docker image: docker build -t cpack_exercise .
  2. Run container: docker run --rm -it -v "$(pwd):/mnt/cpack-exercise" cpack_exercise
  3. Inside container:
    mkdir build && cd build
    cmake ..
    make package
  4. Install deb: apt install ./cpackexample_1.0.0_amd64.deb
  5. Run: cpackexample

Lintian Output

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]

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.

Slight problems, otherwise good.

set(CPACK_PACKAGE_NAME "cpackexample")
set(CPACK_PACKAGE_VENDOR "University of Stuttgart")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "CPack Exercise Solution")
set(CPACK_PACKAGE_VERSION "1.0.0")
Copy link
Member

Choose a reason for hiding this comment

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

Why hard-coding to a different version than the project?

)

# 2. Include CPack Configuration
# We will create this file in the next step
Copy link
Member

Choose a reason for hiding this comment

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

Who is "we", what is the "next step"?

@uekerman uekerman closed this Jan 4, 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