Open3D
Open3D copied to clipboard
Add BUILD_DEBIAN_PACKAGE option for Debian package support
Introduced the BUILD_DEBIAN_PACKAGE
CMake option to enable building a Debian package for the library. When this option is enabled and the host system supports Debian, the library will be packaged accordingly.
Usage: To enable debian package building: `cmake -DBUILD_DEBIAN_PACKAGE=ON <other_config_options> ..
To build debian package:
make package
or
cpack
Type
- [ ] Bug fix (non-breaking change which fixes an issue): Fixes #
- [x] New feature (non-breaking change which adds functionality). Resolves #
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) Resolves #
Motivation and Context
This feature simplifies installation by allowing users to generate a Debian package directly through CMake, adhering to standard packaging conventions and enabling seamless integration with package management tools like apt. By streamlining the development workflow, we empower developers to focus on feature enhancement while encouraging community contributions and customisation. Overall, this initiative broadens our library's reach and strengthens its position within the open-source ecosystem, making it more user-friendly and accessible.
Checklist:
- [x] I have run
python util/check_style.py --apply
to apply Open3D code style to my code. - [ ] This PR changes Open3D behavior or adds new functionality.
- [ ] Both C++ (Doxygen) and Python (Sphinx / Google style) documentation is updated accordingly.
- [ ] I have added or updated C++ and / or Python unit tests OR included test results (e.g. screenshots or numbers) here.
- [x] I will follow up and update the code if CI fails.
- [x] For fork PRs, I have selected Allow edits from maintainers.
Here is the summary of different outouts:
$ cmake -DBUILD_DEBIAN_PACKAGE=ON ..
cpack
$ cpack
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: Open3D
CPack: - Install project: Open3D []
CPack: Create package
CPackDeb: - Generating dependency list
CPack: - package: /home/meet/Open3D/build/package/open3d_0.18.0_amd64.deb generated.