title: Package OpenCV Dll to distribute C++ DLL
body: <p>I created on Visual Studio 2017 a DLL in C++ with a C wrapper and I am using the <code>OpenCV</code> library. I installed <code>OpenCV</code> on my computer, add the path of the <code>.lib</code> and <code>.dll</code> files in my project, and like this I am able to use my DLL in others programs. To be precise, I have now OpenCV on a folder <code>C:\opencv\...</code> and my visual studio solution on <code>C:\MG\DLL\MyDll.sln</code>.</p>
  
  <p>But, in order to use it on another computer, I won't be able to install <code>OpenCV</code> so I have to find how to package the <code>OpenCV</code> library to distribute the correct files with my <code>.dll</code> file. Maybe I juste have to copy the <code>.dll</code> files of <code>OpenCV</code> in the same folder of my DLL ?</p>
  
  <p>I don't know how to deal with this, because on internet I saw some people talking for example about <code>CMake</code>, others including some files in the project, ... </p>
  
  <p>Moreover, I try to simulate this using a software in which I can add a C# plugin which use my C++ DLL. In this case, I rename the <code>OpenCV</code> folder to be sure the link with this folder is broken. If I copy the <code>.dll</code> files of <code>OpenCV</code>, the plugin is not functional anymore after renaming the installation folder of <code>OpenCV</code>. </p>
  
  <p>Thank you in advance for sharing your experience/knowledge ;)</p>