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. 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. First, in the Output Directory of my executable, so that I can run it immediately. Second, in the INSTALL location, which would also help CPack pick them up later. Both are dependent on what configuration is being used (debug/optimized).
<br><br>Perhaps if Find<3rdParty>.cmake or <3rdParty>Config.cmake advertised a 3rdParty_BIN_DIR or 3rdParty_RUNTIME_DIR this would help? 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> <<a href="mailto:a.neundorf-work@gmx.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
a.neundorf-work@gmx.net</a>> 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 <<a href="mailto:wjarosz@ucsd.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">wjarosz@ucsd.edu</a>><br><br>> Hi all,<br>> I'm just starting to use CMake with Windows (have used it for a while
<br>> now on Linux) so please forgive me if my question is stupid. I tried
<br>> looking in the archives but didn't find anything related.<br>><br>> I have a project set up on Windows now (it compiles and links<br>> correctly), but what is the normal way to run the executables or tests?
<br>> I have tried doing it manually from a Visual Studio command line, or<br>> >from within Visual Studio (right click->debug->start new instance), but<br>> both of these techniques complain that it cannot find my DLLs. I figured
<br>> at least the method from within Visual Studio would be able to set the<br>> environment correctly to find the DLLs. Is there some CMakeLists.txt<br>> magic that will set this up correctly? Or is the solution really that I
<br>> have to add each DLL build dir to my path manually within Windows?<br>><br>> I have tried copying all necessary DLLs to my executable build dir by<br>> 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>"Feel free" - 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>