Commit 4903b698a97fd4c0ba6273098c97bc5182c84138
Committed by
Henry Schreiner
1 parent
4b3a6b62
Enhancements in building deb packages: (#399)
* Fixed building deb packages, broken because of lack contact field. * Added some missing metadata. * Set the name according to the convention.
Showing
3 changed files
with
10 additions
and
0 deletions
CLI11.CPack.Description.txt
0 → 100644
| 1 | +CLI11 provides all the features you expect in a powerful command line parser, with a beautiful, minimal syntax and no dependencies beyond C++11. It is header only, and comes in a single file form for easy inclusion in projects. It is easy to use for small projects, but powerful enough for complex command line projects, and can be customized for frameworks. | |
| 2 | + | ... | ... |
CMakeLists.txt
| ... | ... | @@ -271,10 +271,12 @@ endif() |
| 271 | 271 | # Packaging support |
| 272 | 272 | # Packaging support |
| 273 | 273 | set(CPACK_PACKAGE_VENDOR "github.com/CLIUtils/CLI11") |
| 274 | +set(CPACK_PACKAGE_CONTACT "https://${CPACK_PACKAGE_VENDOR}") | |
| 274 | 275 | set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) |
| 275 | 276 | set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Command line parser with simple and intuitive interface") |
| 276 | 277 | set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") |
| 277 | 278 | set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") |
| 279 | +set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/CLI11.CPack.Description.txt") | |
| 278 | 280 | set(CPACK_SOURCE_GENERATOR "TGZ;ZIP") |
| 279 | 281 | # CPack collects *everything* except what's listed here. |
| 280 | 282 | set(CPACK_SOURCE_IGNORE_FILES |
| ... | ... | @@ -286,5 +288,10 @@ set(CPACK_SOURCE_IGNORE_FILES |
| 286 | 288 | /var |
| 287 | 289 | /Pipfile.*$ |
| 288 | 290 | ) |
| 291 | + | |
| 292 | +set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) | |
| 293 | +set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all") | |
| 294 | +set(CPACK_DEBIAN_COMPRESSION_TYPE "xz") | |
| 295 | +set(CPACK_DEBIAN_PACKAGE_NAME "libcli11-dev") | |
| 289 | 296 | include(CPack) |
| 290 | 297 | ... | ... |