You could set this target property:<div><a href="http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:RUNTIME_OUTPUT_DIRECTORY">http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:RUNTIME_OUTPUT_DIRECTORY</a></div>
<div><br></div><div>Or this variable prior to defining any targets:</div><div><a href="http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_RUNTIME_OUTPUT_DIRECTORY">http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_RUNTIME_OUTPUT_DIRECTORY</a></div>
<div><br></div><div>...to put all the runtime (exe and dll) output files in the same directory with each other...</div><div><br></div><div>That&#39;s really the easiest thing to do for a multi-dll windows build of a project.</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br><br><div class="gmail_quote">On Mon, Aug 9, 2010 at 6:54 PM, Daniel Franke <span dir="ltr">&lt;<a href="mailto:franke.daniel@gmail.com">franke.daniel@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi all.<br>
<br>
I wrote some unit tests for a library target in my project. A driver<br>
application links the library and runs the tests. This works fine with<br>
Makefile targets on Linux. With MinGW Makefiles on Windows, the driver<br>
properly links, but when running `make test`, the system complains that it can<br>
not find the dll linked previously (&quot;The application has failed to start<br>
because target.dll was not found. [...]&quot;).<br>
<br>
Is there any cmake-magic that would allow to run `make test` on MinGW similar<br>
to any Linux or Mac environment, i.e. without any manual steps? Anything but a<br>
custom target to copy the dll in question into the directory of the test<br>
driver or modifying %PATH%?<br>
<br>
Thanks<br>
<br>
        Daniel<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>
</blockquote></div><br></div>