mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 04:33:53 +00:00
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.
This commit is contained in:
parent
4b3a6b6214
commit
4903b698a9
2
CLI11.CPack.Description.txt
Normal file
2
CLI11.CPack.Description.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
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.
|
||||||
|
|
@ -271,10 +271,12 @@ endif()
|
|||||||
# Packaging support
|
# Packaging support
|
||||||
# Packaging support
|
# Packaging support
|
||||||
set(CPACK_PACKAGE_VENDOR "github.com/CLIUtils/CLI11")
|
set(CPACK_PACKAGE_VENDOR "github.com/CLIUtils/CLI11")
|
||||||
|
set(CPACK_PACKAGE_CONTACT "https://${CPACK_PACKAGE_VENDOR}")
|
||||||
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
||||||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Command line parser with simple and intuitive interface")
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Command line parser with simple and intuitive interface")
|
||||||
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
|
||||||
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
|
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
|
||||||
|
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/CLI11.CPack.Description.txt")
|
||||||
set(CPACK_SOURCE_GENERATOR "TGZ;ZIP")
|
set(CPACK_SOURCE_GENERATOR "TGZ;ZIP")
|
||||||
# CPack collects *everything* except what's listed here.
|
# CPack collects *everything* except what's listed here.
|
||||||
set(CPACK_SOURCE_IGNORE_FILES
|
set(CPACK_SOURCE_IGNORE_FILES
|
||||||
@ -286,5 +288,10 @@ set(CPACK_SOURCE_IGNORE_FILES
|
|||||||
/var
|
/var
|
||||||
/Pipfile.*$
|
/Pipfile.*$
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all")
|
||||||
|
set(CPACK_DEBIAN_COMPRESSION_TYPE "xz")
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_NAME "libcli11-dev")
|
||||||
include(CPack)
|
include(CPack)
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ class CLI11Conan(ConanFile):
|
|||||||
"extern/*",
|
"extern/*",
|
||||||
"cmake/*",
|
"cmake/*",
|
||||||
"CMakeLists.txt",
|
"CMakeLists.txt",
|
||||||
|
"CLI11.CPack.Description.txt",
|
||||||
"tests/*",
|
"tests/*",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user