I hope no one minds if I resurrect this thread.<br><br>Anyone on Windows will encounter the same issue, and I'm wondering what the best approach is or will be.&nbsp; Particularly, take into account that I might not be using CMake to build all of my [3rd party] dependencies, nor might I want to drop all targets in the same directory.
<br><br>There are two places DLL's of dependencies should end up.&nbsp; First, in the Output Directory of my executable, so that I can run it immediately.&nbsp; Second, in the INSTALL location, which would also help CPack pick them up later.&nbsp; Both are dependent on what configuration is being used (debug/optimized).
<br><br>Perhaps if Find&lt;3rdParty&gt;.cmake or &lt;3rdParty&gt;Config.cmake advertised a 3rdParty_BIN_DIR or 3rdParty_RUNTIME_DIR this would help?&nbsp; I could try writing a FIND_RUNTIME_LIBRARY macro if that would help.<br>

<br>Thoughts?<br>-jacob<br><br><div><span class="gmail_quote">On 9/18/06, <b class="gmail_sendername">Alexander Neundorf</b> &lt;<a href="mailto:a.neundorf-work@gmx.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
a.neundorf-work@gmx.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Von: Wojciech Jarosz &lt;<a href="mailto:wjarosz@ucsd.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">wjarosz@ucsd.edu</a>&gt;<br><br>&gt; Hi all,<br>&gt; I'm just starting to use CMake with Windows (have used it for a while
<br>&gt; now on Linux) so please forgive me if my question is stupid. I tried
<br>&gt; looking in the archives but didn't find anything related.<br>&gt;<br>&gt; I have a project set up on Windows now (it compiles and links<br>&gt; correctly), but what is the normal way to run the executables or tests?
<br>&gt; I have tried doing it manually from a Visual Studio command line, or<br>&gt; &gt;from within Visual Studio (right click-&gt;debug-&gt;start new instance), but<br>&gt; both of these techniques complain that it cannot find my DLLs. I figured
<br>&gt; at least the method from within Visual Studio would be able to set the<br>&gt; environment correctly to find the DLLs. Is there some CMakeLists.txt<br>&gt; magic that will set this up correctly? Or is the solution really that I
<br>&gt; have to add each DLL build dir to my path manually within Windows?<br>&gt;<br>&gt; I have tried copying all necessary DLLs to my executable build dir by<br>&gt; hand and that works fine. Hopefully there is a more elegant solution.
<br><br>You could set EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH to the same directory, then both should end up in the same directory.<br><br>Alex<br><br>--<br>&quot;Feel free&quot; - 10 GB Mailbox, 100 FreeSMS/Monat ...
<br>Jetzt GMX TopMail testen: <a href="http://www.gmx.net/de/go/topmail" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.gmx.net/de/go/topmail</a><br>_______________________________________________
<br>CMake mailing list<br><a href="mailto:CMake@cmake.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">CMake@cmake.org
</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>