Ver código fonte

Adds support for CLI11 library (#1199)

* Adds support for CLI11 library

* Update packages/c/cli11/xmake.lua

Co-authored-by: Leo Di Donato <[email protected]>

* Update packages/c/cli11/xmake.lua

Co-authored-by: Leo Di Donato <[email protected]>

* Update xmake.lua

Co-authored-by: Leo Di Donato <[email protected]>
Co-authored-by: ruki <[email protected]>
Zheng Zeng 3 anos atrás
pai
commit
00c85812bb
1 arquivos alterados com 20 adições e 0 exclusões
  1. 20 0
      packages/c/cli11/xmake.lua

+ 20 - 0
packages/c/cli11/xmake.lua

@@ -0,0 +1,20 @@
+package("cli11")
+    set_kind("library", {headeronly = true})
+    set_homepage("https://github.com/CLIUtils/CLI11")
+    set_description("CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.")
+    set_license("BSD")
+
+    add_urls("https://github.com/CLIUtils/CLI11/archive/refs/tags/$(version).tar.gz",
+             "https://github.com/CLIUtils/CLI11.git")
+
+    add_versions("v2.2.0", "d60440dc4d43255f872d174e416705f56ba40589f6eb07727f76376fb8378fd6")
+
+    on_install("windows", "linux", "macosx", function (package)
+        os.cp("include", package:installdir())
+    end)
+
+    on_test(function (package)
+        assert(package:check_cxxsnippets({test = [[
+            CLI::App app{"Test", "test"};
+        ]]}, {configs = {languages = "cxx11"}, includes = "CLI/CLI.hpp"}))
+    end)