This is what my CreateLaunchers.cmake script does - <a href="https://github.com/rpavlik/cmake-modules">https://github.com/rpavlik/cmake-modules</a><div><br></div><div><a href="https://github.com/rpavlik/cmake-modules"></a>Lets you do this:</div>
<div><div>create_default_target_launcher(yourapp</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>ARGS</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&quot;${COMMAND_LINE_ARGS}&quot;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>RUNTIME_LIBRARY_DIRS</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>${RUNTIME_LIBRARY_DIRS}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>WORKING_DIRECTORY</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>&quot;${CMAKE_CURRENT_SOURCE_DIR}&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>ENVIRONMENT</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>${ENVIRONMENT_VARS})</div>
<br><div class="gmail_quote">On Wed, Feb 9, 2011 at 1:35 PM, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com">drescherjm@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 class="im">On Wed, Feb 9, 2011 at 2:30 PM, Robert Bielik &lt;<a href="mailto:robert.bielik@xponaut.se">robert.bielik@xponaut.se</a>&gt; wrote:<br>
&gt; Louis Hoefler skrev 2011-02-09 19:41:<br>
&gt;&gt;<br>
&gt;&gt; Hello everyone,<br>
&gt;&gt; i created cmake files for a visual studio solution.<br>
&gt;&gt; The solution compiles, and now I want to<br>
&gt;&gt; start debugging the testapplication.<br>
&gt;&gt;<br>
&gt;&gt; I want to change the command line option,<br>
&gt;&gt; which is used by the debugger, to invoke the application.<br>
&gt;&gt;<br>
&gt;&gt; How can this be done?<br>
&gt;&gt;<br>
&gt;&gt; I use cmake 2.8.3 and visual studio 2010.<br>
&gt;<br>
&gt; I don&#39;t think you can. Those settings are not in any project/solution file<br>
&gt; but are stored as user settings, which of course<br>
&gt; CMake has nothing to do with.<br>
&gt;<br>
<br>
</div>You could generate this file in cmake using cmake file commands. The<br>
user files are xml.<br>
<br>
Here is an example:<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;Windows-1252&quot;?&gt;<br>
&lt;VisualStudioUserFile<br>
        ProjectType=&quot;Visual C++&quot;<br>
        Version=&quot;9.00&quot;<br>
        ShowAllFiles=&quot;false&quot;<br>
        &gt;<br>
        &lt;Configurations&gt;<br>
                &lt;Configuration<br>
                        Name=&quot;Debug|Win32&quot;<br>
                        &gt;<br>
                        &lt;DebugSettings<br>
                                Command=&quot;$(TargetPath)&quot;<br>
                                WorkingDirectory=&quot;&quot;<br>
                                CommandArguments=&quot;&quot;<br>
                                Attach=&quot;false&quot;<br>
                                DebuggerType=&quot;3&quot;<br>
                                Remote=&quot;1&quot;<br>
                                RemoteMachine=&quot;RADIMGWS61&quot;<br>
                                RemoteCommand=&quot;&quot;<br>
                                HttpUrl=&quot;&quot;<br>
                                PDBPath=&quot;&quot;<br>
                                SQLDebugging=&quot;&quot;<br>
                                Environment=&quot;&quot;<br>
                                EnvironmentMerge=&quot;true&quot;<br>
                                DebuggerFlavor=&quot;&quot;<br>
                                MPIRunCommand=&quot;&quot;<br>
                                MPIRunArguments=&quot;&quot;<br>
                                MPIRunWorkingDirectory=&quot;&quot;<br>
                                ApplicationCommand=&quot;&quot;<br>
                                ApplicationArguments=&quot;&quot;<br>
                                ShimCommand=&quot;&quot;<br>
                                MPIAcceptMode=&quot;&quot;<br>
                                MPIAcceptFilter=&quot;&quot;<br>
                        /&gt;<br>
                &lt;/Configuration&gt;<br>
                &lt;Configuration<br>
                        Name=&quot;RelWithDebInfo|Win32&quot;<br>
                        &gt;<br>
                        &lt;DebugSettings<br>
                                Command=&quot;$(TargetPath)&quot;<br>
                                WorkingDirectory=&quot;&quot;<br>
                                CommandArguments=&quot;&quot;<br>
                                Attach=&quot;false&quot;<br>
                                DebuggerType=&quot;3&quot;<br>
                                Remote=&quot;1&quot;<br>
                                RemoteMachine=&quot;RADIMGWS61&quot;<br>
                                RemoteCommand=&quot;&quot;<br>
                                HttpUrl=&quot;&quot;<br>
                                PDBPath=&quot;&quot;<br>
                                SQLDebugging=&quot;&quot;<br>
                                Environment=&quot;&quot;<br>
                                EnvironmentMerge=&quot;true&quot;<br>
                                DebuggerFlavor=&quot;&quot;<br>
                                MPIRunCommand=&quot;&quot;<br>
                                MPIRunArguments=&quot;&quot;<br>
                                MPIRunWorkingDirectory=&quot;&quot;<br>
                                ApplicationCommand=&quot;&quot;<br>
                                ApplicationArguments=&quot;&quot;<br>
                                ShimCommand=&quot;&quot;<br>
                                MPIAcceptMode=&quot;&quot;<br>
                                MPIAcceptFilter=&quot;&quot;<br>
                        /&gt;<br>
                &lt;/Configuration&gt;<br>
        &lt;/Configurations&gt;<br>
&lt;/VisualStudioUserFile&gt;<br>
<font color="#888888"><br>
<br>
John<br>
</font><div><div></div><div class="h5">_______________________________________________<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><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>