xmake.lua 731 B

12345678910111213141516171819202122
  1. package("tweeny")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("http://mobius3.github.io/tweeny")
  4. set_description("A modern C++ tweening library")
  5. set_license("MIT")
  6. add_urls("https://github.com/mobius3/tweeny.git")
  7. add_versions("2023.05.09", "56aab8d0f9ee516c7b6014ba5212b5551efb590e")
  8. on_install(function (package)
  9. os.cp("include", package:installdir())
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <tweeny.h>
  14. void test() {
  15. auto helloworld = tweeny::from('h','e','l','l','o').to('w','o','r','l','d').during(50);
  16. }
  17. ]]}, {configs = {languages = "c++11"}}))
  18. end)