xmake.lua 988 B

12345678910111213141516171819202122
  1. package("urdfdom-headers")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("http://ros.org/wiki/urdf")
  4. set_description("Headers for URDF parsers")
  5. set_license("BSD-3-Clause")
  6. add_urls("https://github.com/ros/urdfdom_headers/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/ros/urdfdom_headers.git")
  8. add_versions("1.0.5", "76a68657c38e54bb45bddc4bd7d823a3b04edcd08064a56d8e7d46b9912035ac")
  9. add_versions("1.1.1", "b2ee5bffa51eea4958f64479b4fa273881d82a3bfa1d98686a16f8d8ca6c2350")
  10. add_patches("1.0.5", path.join(os.scriptdir(), "patches", "1.0.5", "export.patch"), "c7c15c0fba7b618c4ff9207a561caae70374e642a779fb346f2c084d5da6ed8b")
  11. add_deps("cmake")
  12. on_install(function (package)
  13. import("package.tools.cmake").install(package, {"-DAPPEND_PROJECT_NAME_TO_INCLUDEDIR=OFF"})
  14. end)
  15. on_test(function (package)
  16. assert(package:has_cxxtypes("urdf::World", {includes = "urdf_world/world.h"}))
  17. end)