title: creating dll from existing c++ project with opencv
body: <p>I need to create dll library from existing c++ project (around 20 files .cpp and .h). Project use opencv. 
  I've done something like this:</p>
  
  <pre><code>#ifndef TESTDLL_LOADCONFIG_H
  #define TESTDLL_LOADCONFIG_H __declspec(dllexport)
  #else   
  #define TESTDLL_LOADCONFIG_H __declspec(dllimport)
  #endif
  </code></pre>
  
  <p>at the beginning every header file which I want to export. And changed in properties configuration type to dll.</p>
  
  <p>So there is my question is it all, and build dll file is ok? And is it possible to not attach again a opencv if it was attached in first project?</p>