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
892 B
24 lines
892 B
package("lyra") |
|
|
|
set_homepage("https://www.bfgroup.xyz/Lyra/") |
|
set_description("A simple to use, composable, command line parser for C++ 11 and beyond") |
|
set_license("BSL-1.0") |
|
|
|
add_urls("https://github.com/bfgroup/Lyra/archive/1.5.1.tar.gz", |
|
"https://github.com/bfgroup/Lyra.git") |
|
add_versions("1.5.1", "11ccdfc6f776b9a2ebe987d9b4e492981f88f3642546fd1c2e1115741863cae0") |
|
|
|
on_install(function (package) |
|
os.cp("include", package:installdir()) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
void test() { |
|
int width = 0; |
|
auto cli = lyra::cli() |
|
| lyra::opt(width, "width") |
|
["-w"]["--width"]("How wide should it be?"); |
|
} |
|
]]}, {configs = {languages = "c++17"}, includes = "lyra/lyra.hpp"})) |
|
end)
|
|
|