xmake.lua 701 B

1234567891011121314151617181920
  1. package("emhash")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/ktprime/emhash")
  4. set_description("Fast and memory efficient c++ flat hash map/set")
  5. set_license("MIT")
  6. add_urls("https://github.com/ktprime/emhash.git")
  7. add_versions("2024.06.01", "3efa77ef32786a033b379071fe8af3dc705736ca")
  8. on_install(function (package)
  9. os.cp("*.hpp", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. void test() {
  14. emhash5::HashMap<int, int> m1(4);
  15. }
  16. ]]}, {configs = {languages = "c++11"}, includes = "hash_table5.hpp"}))
  17. end)