star9029 пре 1 година
родитељ
комит
76a49c7cf8
1 измењених фајлова са 21 додато и 0 уклоњено
  1. 21 0
      packages/c/cmdparser/xmake.lua

+ 21 - 0
packages/c/cmdparser/xmake.lua

@@ -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)