He probably just uses a project.vcproj.user file, and uses the configure_file() command on it to fill in command arguments, environment variables, etc etc.<div><br></div><div>I&#39;ve done this before and it works fantastically, although I have never tried it to force the EXE to search for my DLL files without copying them. Good idea though, if it works!<br clear="all">
<div><br></div><div>---------</div>Robert Dailey<br>
<br><br><div class="gmail_quote">On Tue, Jan 10, 2012 at 2:29 PM, Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am VERY interested in how you did this. Did you have CMake write a file for you? Do you have some code to share by any chance?<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">--<br>
Mike Jackson &lt;<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a>&gt;<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Jan 10, 2012, at 3:17 PM, Ben Medina wrote:<br>
<br>
&gt; I&#39;d guess the performance of fixup_bundle will be a big pitfall if<br>
&gt; you&#39;re planning on doing this after every build.<br>
&gt;<br>
&gt; An entirely different approach is to configure a Visual Studio .user<br>
&gt; file to set the PATH environment variable (not setting it globally;<br>
&gt; just for debugging your app from within VS). You still have to track<br>
&gt; which directories to add to the PATH, but this approach has worked<br>
&gt; flawlessly for us (across multiple versions of VS, as well as 32- and<br>
&gt; 64-bit configs).<br>
&gt;<br>
&gt; On Mon, Jan 9, 2012 at 8:41 AM, David Cole &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt; wrote:<br>
&gt;&gt; 2012/1/9 Hauke Heibel &lt;<a href="mailto:hauke.heibel@googlemail.com">hauke.heibel@googlemail.com</a>&gt;:<br>
&gt;&gt;&gt; 2012/1/9 Michael Stürmer &lt;<a href="mailto:m.stuermer@pmdtec.com">m.stuermer@pmdtec.com</a>&gt;:<br>
&gt;&gt;&gt;&gt; Awesome! Sometimes you just need to know what&#39;s already available to solve your problems in a very elegant way. I&#39;ll have a look at these bundles and probably switch to them instead of maintaining my own stuff!<br>

&gt;&gt;&gt;<br>
&gt;&gt;&gt; When looking at the initial problem, I am pretty much convinced that<br>
&gt;&gt;&gt; you need a combination of your own script and GetPrerequisites since<br>
&gt;&gt;&gt; you want to copy to your run-time output directory - and there to<br>
&gt;&gt;&gt; specific sub-directories depending on the build type.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; It may well be that I have overseen some functionality in those new modules ...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; - Hauke<br>
&gt;&gt;<br>
&gt;&gt; BundleUtilities, on Windows, should copy dlls to be in the same<br>
&gt;&gt; directory as the executable being analyzed... So, as long as the exe<br>
&gt;&gt; is in the right directory when fixup_bundle is called on it, then the<br>
&gt;&gt; dlls will get copied into that same directory.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; David<br>
&gt;&gt; --<br>
&gt;&gt;<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>