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.
21 lines
867 B
21 lines
867 B
2 years ago
|
package("argparse")
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("https://github.com/p-ranav/argparse")
|
||
|
set_description("A single header argument parser for C++17")
|
||
|
set_license("MIT")
|
||
|
|
||
|
add_urls("https://github.com/p-ranav/argparse/archive/refs/tags/v$(version).zip",
|
||
|
"https://github.com/p-ranav/argparse.git")
|
||
|
add_versions("2.6", "ce4e58d527b83679bdcc4adfa852af7ec9df16b76c11637823ef642cb02d2618")
|
||
|
|
||
|
on_install(function (package)
|
||
|
os.cp("include/argparse/argparse.hpp", package:installdir("include/argparse"))
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:check_cxxsnippets({test = [[
|
||
|
void test() {
|
||
|
argparse::ArgumentParser test("test");
|
||
|
}
|
||
|
]]}, {configs = {languages = "c++17"}, includes = "argparse/argparse.hpp"}))
|
||
|
end)
|