xmake.lua 887 B

123456789101112131415161718192021
  1. package("tabulate")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/p-ranav/tabulate")
  4. set_description("Header-only library for printing aligned, formatted and colorized tables in Modern C++")
  5. set_license("MIT")
  6. add_urls("https://github.com/p-ranav/tabulate/archive/refs/tags/v$(version).zip",
  7. "https://github.com/p-ranav/tabulate.git")
  8. add_versions("1.4", "77aca3b371316fb33b8a794906614bc2ef0964ca23ba096161f5e2fade181ffb")
  9. on_install(function (package)
  10. os.cp("include/tabulate/*.hpp", package:installdir("include/tabulate"))
  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)