xmake.lua 690 B

12345678910111213141516171819
  1. package("crstl")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/redorav/crstl")
  4. set_description("STL whose aim is to compile fast, run fast, and be clear to read")
  5. add_urls("https://github.com/redorav/crstl.git")
  6. add_versions("2024.06.04", "0c31b6c76ff74521b2f50b1643f8f3d207184c6c")
  7. on_install(function (package)
  8. os.cp("include", package:installdir())
  9. end)
  10. on_test(function (package)
  11. assert(package:check_cxxsnippets({test = [[
  12. void test() {
  13. crstl::fixed_vector<int, 32> v;
  14. }
  15. ]]}, {configs = {languages = "c++11"}, includes = {"crstl/fixed_vector.h"}}))
  16. end)