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]

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.

1 participant