add NamedType (#527)

pull/528/head
jj683 3 years ago committed by GitHub
parent 14c2205243
commit cfa2d8521d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      packages/n/named_type/xmake.lua

@ -0,0 +1,18 @@
package("named_type")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/joboccara/NamedType")
set_description("Implementation of strong types in C++.")
set_license("MIT")
add_urls("https://github.com/joboccara/NamedType.git")
add_versions("v1.1.0.20210209", "c119054eac4b8f3599233ff480ad1ce4309a52ad")
on_install(function (package)
os.cp("include/NamedType", package:installdir("include"))
end)
on_test(function (package)
assert(package:has_cxxtypes("fluent::NamedType<int, struct TestTag>", {configs = {languages = "c++14"}, includes = "NamedType/named_type.hpp"}))
end)
Loading…
Cancel
Save