The issue here is that XCode stores those command line arguments into the same project file that CMake re-generates. I&#39;m pretty sure there&#39;s an open bug on this one, but it&#39;s a somewhat tricky issue.  You might consider using my CreateLaunchers cmake modules, available here [1] - while they don&#39;t directly handle the xcode issue (though they handle Visual Studio, which has a similar issue but uses separate files), they do generate launch scripts on all platforms that you can use, and allow you to specify the command line arguments in the build files.<div>
<br></div><div>Hope this helps!</div><div><br></div><div>Ryan</div><div><br></div><div>[1]<meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="https://github.com/rpavlik/cmake-modules">https://github.com/rpavlik/cmake-modules</a><br>
<br><div class="gmail_quote">On Mon, Dec 20, 2010 at 8:47 AM, Michael Wild <span dir="ltr">&lt;<a href="mailto:themiwi@gmail.com">themiwi@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;">
<div><div></div><div class="h5">On 12/20/2010 03:34 PM, Alessandro Carpi wrote:<br>
&gt; Hi there,<br>
&gt;<br>
&gt; I am using cmake to generate Xcode projects starting from the usual<br>
&gt; CMakeLists.txt<br>
&gt;<br>
&gt; I often modify CMakeLists.txt to add some source, so I have to re-generate<br>
&gt; the whole project using cmake &lt;path&gt; -G Xcode, but everytime I have to<br>
&gt; manually set up the executable command line arguments from Xcode.<br>
&gt;<br>
&gt; Is there a declaration to add in the CMakeLists.txt in order to generate a<br>
&gt; project that has executables arguments already defined ?<br>
&gt;<br>
&gt; Thank you very much,<br>
&gt;<br>
&gt; --<br>
&gt; Alessandro Carpi<br>
<br>
<br>
</div></div>CMake re-runs itself if you modify the CMakeLists.txt files. Just hit<br>
the build button...<br>
<br>
Michael<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>
</blockquote></div><br><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br>
<a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>
</div>