<div>I am using cmake 2.8 for building MSVC solutions for a project.</div>
<div>The project builds fine as do the tests on Windows. The problem</div>
<div>comes when I try to run the tests. I usually get an error message</div>
<div>that the dependent DLLs cannot be found. I have searched on google</div>
<div>for an answer and came up with a variety of possible solutions. I was</div>
<div>not able to get any of them to work. So I am looking for suggestions.</div>
<div>The methods I found were:</div>
<div> </div>
<div>1. Add the directory to the DLLs to the PATH environment.</div>
<div> </div>
<div>2. Copy the DLLs from their installation directory to the directory of the</div>
<div> test binary.</div>
<div> </div>
<div>3. Statically link the dependent libraries to the target executable/library.</div>
<div> </div>
<div>I was wondering if someone can point me towards an example, tutorial or</div>
<div>appropriate documentation that shows how I can best solve this problem.</div>
<div> </div>
<div>Stephen</div>
<div> </div>
<div> </div>