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
758 B
21 lines
758 B
package("cmdparser") |
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/FlorianRappl/CmdParser") |
|
set_description("A simple and lightweight command line parser using C++11.") |
|
set_license("MIT") |
|
|
|
add_urls("https://github.com/FlorianRappl/CmdParser.git") |
|
|
|
add_versions("2024.02.13", "0c28173f7914c0e47ff12b48f556baa8a5dd0721") |
|
|
|
on_install(function (package) |
|
os.cp("cmdparser.hpp", package:installdir("include")) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
void test(int argc, char** argv) { |
|
cli::Parser parser(argc, argv); |
|
} |
|
]]}, {configs = {languages = "c++11"}, includes = {"cmdparser.hpp"}})) |
|
end)
|
|
|