xmake.lua 766 B

1234567891011121314151617181920212223
  1. package("mathfu")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("http://google.github.io/mathfu")
  4. set_description("C++ math library developed primarily for games focused on simplicity and efficiency.")
  5. set_license("Apache-2.0")
  6. add_urls("https://github.com/google/mathfu.git")
  7. add_versions("2022.5.10", "da23a1227bb65fbb7f2f5b6c504fbbdd1dfdab4b")
  8. add_deps("vectorial")
  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 "mathfu/vector.h"
  15. void test() {
  16. mathfu::Vector<int, 1> vector;
  17. }
  18. ]]}, {configs = {languages = "c++11"}}))
  19. end)