title: Compiling in Code::Blocks with Dependencies
body: <p>I have a project in Code::Blocks which uses uses a dynamic library, and will use more in the future.  I have set up the project correctly to use the library, and it compiles and runs perfectly fine.</p>
  
  <p>However, I'm wondering if there is a way to compile a release version of the exe <strong>with</strong> the dlls needed in a folder alongside it.  (I'd prefer not to hunt them each down and copy/paste them in.)
  I feel like I'm missing something, or going about it the wrong way.</p>
  
  <p><em>Is there anyway to have Code::Blocks do this or a better way of obtaining an easy-to-distribute zipfile/project?</em></p>
  
  <p>How could I use makefiles (cmake preferably, but any type compatible with Windows would be great) to accomplish this?</p>