package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
1.0 KiB

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.3.2", "aac0ab42108131ac5d3344a9db0fdf25c4db652296641955720a4fbe52334e22")
add_versions("v2.2.0", "d60440dc4d43255f872d174e416705f56ba40589f6eb07727f76376fb8378fd6")
if not is_host("windows") then
add_extsources("pkgconfig::CLI11")
end
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)