xmake.lua 708 B

1234567891011121314151617181920
  1. package("utest.h")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://www.duskborn.com/utest_h/")
  4. set_description("single header unit testing framework for C and C++")
  5. add_urls("https://github.com/sheredom/utest.h.git")
  6. add_versions("2022.09.01", "d5d71b6623e23b3f860c996b31ec7bbfb0943119")
  7. on_install("windows", "linux", "bsd", "macosx", "mingw", "android", "iphoneos", "cross", function (package)
  8. os.cp("*.h", package:installdir("include"))
  9. end)
  10. on_test(function (package)
  11. assert(package:check_csnippets({test = [[
  12. #include "utest.h"
  13. UTEST(foo, bar) {
  14. ASSERT_TRUE(1);
  15. }
  16. ]]}))
  17. end)