xmake.lua 856 B

12345678910111213141516171819202122232425
  1. package("snowhouse")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/banditcpp/snowhouse")
  4. set_description("An assertion library for C++")
  5. set_license("BSL-1.0")
  6. add_urls("https://github.com/banditcpp/snowhouse/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/banditcpp/snowhouse.git")
  8. add_versions("v5.0.0", "a1997eb1c170292bad5545ca5e65cb7c900bc49c0f9143672116777d24189b69")
  9. on_install(function (package)
  10. os.cp("include", package:installdir())
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. #include <snowhouse/snowhouse.h>
  15. using namespace snowhouse;
  16. void test()
  17. {
  18. AssertThat(420, Is().EqualTo(420));
  19. }
  20. ]]}, {configs = {languages = "c++11"}}))
  21. end)