xmake.lua 779 B

12345678910111213141516171819202122
  1. package("tabulate")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/p-ranav/tabulate")
  4. set_description("Table Maker for Modern C++")
  5. set_license("MIT")
  6. add_urls("https://github.com/p-ranav/tabulate/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/p-ranav/tabulate.git")
  8. add_versions("v1.5", "16b289f46306283544bb593f4601e80d6ea51248fde52e910cc569ef08eba3fb")
  9. on_install(function (package)
  10. os.cp("include", package:installdir())
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. void test() {
  15. tabulate::Table test{};
  16. }
  17. ]]}, {configs = {languages = "c++11"}, includes = "tabulate/table.hpp"}))
  18. end)