Adds support for CLI11 library (#1199)
* Adds support for CLI11 library * Update packages/c/cli11/xmake.lua Co-authored-by: Leo Di Donato <leodidonato@gmail.com> * Update packages/c/cli11/xmake.lua Co-authored-by: Leo Di Donato <leodidonato@gmail.com> * Update xmake.lua Co-authored-by: Leo Di Donato <leodidonato@gmail.com> Co-authored-by: ruki <waruqi@gmail.com>pull/1200/head
parent
3da2e3e0eb
commit
00c85812bb
1 changed files with 20 additions and 0 deletions
@ -0,0 +1,20 @@ |
||||
package("cli11") |
||||
set_kind("library", {headeronly = true}) |
||||
set_homepage("https://github.com/CLIUtils/CLI11") |
||||
set_description("CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.") |
||||
set_license("BSD") |
||||
|
||||
add_urls("https://github.com/CLIUtils/CLI11/archive/refs/tags/$(version).tar.gz", |
||||
"https://github.com/CLIUtils/CLI11.git") |
||||
|
||||
add_versions("v2.2.0", "d60440dc4d43255f872d174e416705f56ba40589f6eb07727f76376fb8378fd6") |
||||
|
||||
on_install("windows", "linux", "macosx", function (package) |
||||
os.cp("include", package:installdir()) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:check_cxxsnippets({test = [[ |
||||
CLI::App app{"Test", "test"}; |
||||
]]}, {configs = {languages = "cxx11"}, includes = "CLI/CLI.hpp"})) |
||||
end) |
Loading…
Reference in new issue