xmake.lua 960 B

12345678910111213141516171819202122232425
  1. package("samurai")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://hpc-math-samurai.readthedocs.io")
  4. set_description("Intervals coupled with algebra of set to handle adaptive mesh refinement and operators on it.")
  5. set_license("BSD-3-Clause")
  6. add_urls("https://github.com/hpc-maths/samurai/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/hpc-maths/samurai.git")
  8. add_versions("v0.6.0", "bab96adac8e1553b79678a22de2248bec67c7c205b5fd35e9e1aaccaca41286e")
  9. add_deps("xtensor", "highfive", "pugixml", "fmt")
  10. on_install("windows", "linux", "macosx", function (package)
  11. os.cp("include", package:installdir())
  12. end)
  13. on_test(function (package)
  14. assert(package:check_cxxsnippets({test = [[
  15. #include <samurai/cell_list.hpp>
  16. void test() {
  17. samurai::CellList<2> cl;
  18. }
  19. ]]}, {configs = {languages = "c++17"}}))
  20. end)