package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.4 KiB

package("xtl")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/xtensor-stack/xtl/")
set_description("Basic tools (containers, algorithms) used by other quantstack packages")
set_license("BSD-3-Clause")
add_urls("https://github.com/xtensor-stack/xtl/archive/refs/tags/$(version).tar.gz",
"https://github.com/xtensor-stack/xtl.git")
add_versions("0.7.7", "44fb99fbf5e56af5c43619fc8c29aa58e5fad18f3ba6e7d9c55c111b62df1fbb")
add_versions("0.7.2", "95c221bdc6eaba592878090916383e5b9390a076828552256693d5d97f78357c")
add_versions("0.7.3", "f4a81e3c9ca9ddb42bd4373967d4859ecfdca1aba60b9fa6ced6c84d8b9824ff")
3 years ago
add_versions("0.7.4", "3c88be0e696b64150c4de7a70f9f09c00a335186b0b0b409771ef9f56bca7d9a")
add_versions("0.7.6", "dda442dc81f390f77561913062471c39b6ef19ffc6f64d3cd12b5c4b4607c957")
add_deps("cmake")
add_deps("nlohmann_json")
on_install("windows", "macosx", "linux", "mingw@windows", function (package)
import("package.tools.cmake").install(package)
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
xtl::xcomplex<double> c0;
xtl::xcomplex<double> c1(1.);
xtl::xcomplex<double> c2(1., 2.);
}
]]}, {configs = {languages = "c++14"}, includes = "xtl/xcomplex.hpp"}))
end)