xmake.lua 854 B

1234567891011121314151617181920
  1. package("cli11")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/CLIUtils/CLI11")
  4. 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.")
  5. set_license("BSD")
  6. add_urls("https://github.com/CLIUtils/CLI11/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/CLIUtils/CLI11.git")
  8. add_versions("v2.2.0", "d60440dc4d43255f872d174e416705f56ba40589f6eb07727f76376fb8378fd6")
  9. on_install("windows", "linux", "macosx", function (package)
  10. os.cp("include", package:installdir())
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. CLI::App app{"Test", "test"};
  15. ]]}, {configs = {languages = "cxx11"}, includes = "CLI/CLI.hpp"}))
  16. end)