xmake.lua 706 B

123456789101112131415161718192021
  1. package("happly")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/nmwsharp/happly")
  4. set_description("A C++ header-only parser for the PLY file format.")
  5. set_license("MIT")
  6. add_urls("https://github.com/nmwsharp/happly.git")
  7. add_versions("2022.01.07", "cfa2611550bc7da65855a78af0574b65deb81766")
  8. on_install(function (package)
  9. os.cp("happly.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. void test() {
  14. happly::PLYData plyIn("my_file.ply");
  15. }
  16. ]]}, {configs = {languages = "c++11"}, includes = "happly.h"}))
  17. end)