Created tabulate lib package (#1394)

* Create xmake.lua

* Removed redundant lines
pull/1421/head
Сафиюлин Александр 2 years ago committed by GitHub
parent 7d7e31d95d
commit 3042eac13b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      packages/t/tabulate/xmake.lua

@ -0,0 +1,21 @@
package("tabulate")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/p-ranav/tabulate")
set_description("Header-only library for printing aligned, formatted and colorized tables in Modern C++")
set_license("MIT")
add_urls("https://github.com/p-ranav/tabulate/archive/refs/tags/v$(version).zip",
"https://github.com/p-ranav/tabulate.git")
add_versions("1.4", "77aca3b371316fb33b8a794906614bc2ef0964ca23ba096161f5e2fade181ffb")
on_install(function (package)
os.cp("include/tabulate/*.hpp", package:installdir("include/tabulate"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
tabulate::Table test{};
}
]]}, {configs = {languages = "c++11"}, includes = "tabulate/table.hpp"}))
end)
Loading…
Cancel
Save