<div class="gmail_quote">On Tue, Jan 27, 2009 at 10:34 PM, Tron Thomas <span dir="ltr"><<a href="mailto:tron.thomas@verizon.net">tron.thomas@verizon.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I want to use CMake to configure a project that will build several applications. I would like things such that each built program ends up in a directory path like:<br>
.../BuildDirectory/Debug/ApplicationName/AppliationName(.exe)<br>
<br>
<br>
What is needed to cause CMake to configure this kind of build output?</blockquote><div><br>I'm not sure if you'll be able to easily get the "Debug" prior to the "ApplicationName" because usually Visual Studio adds that. If you can live with "ApplicationName/Debug/ApplicationName.exe" the following might work for you:<br>
<br>add_execuable(ApplicationName foo.cc)<br>set_target_properties(ApplicationName PROPERTIES RUNTIME_OUTPUT_DIRECTORY ApplicationName)<br><br>I would only consider this if you are building all static executables
or are willing to live with using the PATH environment variable to keep
DLLs in your path. Otherwise you're very quickly going to run into a problem running one or more of your executables and you'll have to copy DLLs to every folder.<br></div></div><br>-- <br>Philip Lowman<br>