Is there a way to make a Command Line Tool (C++) to build with all its dependencies so it could run on another Mac without having to install any additional libs. I have a basic command line app that uses the OpenCV libraries. It can't run on other Macs because the dylib are not installed. I have all of the static libs (.a files) listed under " Build Phases->Link Binary With Libraries".
How do I make the final executable include all it needs to run on another Mac?
Running Xcode Version 9.0 (9A235), OS X 10.12.6, OpenCV 3.3 (installed with brew).