xmake.lua 824 B

1234567891011121314151617181920212223
  1. package("tclap")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://tclap.sourceforge.net/")
  4. set_description("Templatized C++ command-line parser library")
  5. set_license("MIT")
  6. add_urls("https://github.com/mirror/tclap/archive/refs/tags/$(version).tar.gz",
  7. "https://git.code.sf.net/p/tclap/code.git")
  8. add_versions("v1.2.5", "7e87d13734076fa4f626f6144ce9a02717198b3f054341a6886e2107b048b235")
  9. on_install(function (package)
  10. os.cp("include/tclap", package:installdir("include"))
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. #include <tclap/CmdLine.h>
  15. void test() {
  16. TCLAP::CmdLine cmd("Test", ' ', "0.9");
  17. }
  18. ]]}, {configs = {languages = "c++98"}}))
  19. end)