cmdparser: add package (#4428)
parent
4415c769c7
commit
76a49c7cf8
1 changed files with 21 additions and 0 deletions
@ -0,0 +1,21 @@ |
||||
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) |
Loading…
Reference in new issue