LibTorch redistributable for Arm?

Arm 64 platform:

I’ve built my C++ app on Arm 64. It depends on LibTorch, which I built myself on Arm from source.

I’d like to distribute this app to 3rd parties. I’d like to make the demo process for the 3rd parties as simple as possible, the demo should basically work out-of-the-box.

How do I distribute the LibTorch runtime with my app demo?

  • Which dirs/files are necessary?
  • Where do I copy those?
  • What’s the dir structure?
  • Etc.

I understand this is the dir structure:

libtorch/
  bin/
  include/
  lib/
  share/

But it doesn’t feel right to hand pick the files and do the whole packaging manually. Is there a better way which would pack the runtime during the build process or similar?