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>"${COMMAND_LINE_ARGS}"</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>"${CMAKE_CURRENT_SOURCE_DIR}"</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"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></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 <<a href="mailto:robert.bielik@xponaut.se">robert.bielik@xponaut.se</a>> wrote:<br>
> Louis Hoefler skrev 2011-02-09 19:41:<br>
>><br>
>> Hello everyone,<br>
>> i created cmake files for a visual studio solution.<br>
>> The solution compiles, and now I want to<br>
>> start debugging the testapplication.<br>
>><br>
>> I want to change the command line option,<br>
>> which is used by the debugger, to invoke the application.<br>
>><br>
>> How can this be done?<br>
>><br>
>> I use cmake 2.8.3 and visual studio 2010.<br>
><br>
> I don't think you can. Those settings are not in any project/solution file<br>
> but are stored as user settings, which of course<br>
> CMake has nothing to do with.<br>
><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>
<?xml version="1.0" encoding="Windows-1252"?><br>
<VisualStudioUserFile<br>
ProjectType="Visual C++"<br>
Version="9.00"<br>
ShowAllFiles="false"<br>
><br>
<Configurations><br>
<Configuration<br>
Name="Debug|Win32"<br>
><br>
<DebugSettings<br>
Command="$(TargetPath)"<br>
WorkingDirectory=""<br>
CommandArguments=""<br>
Attach="false"<br>
DebuggerType="3"<br>
Remote="1"<br>
RemoteMachine="RADIMGWS61"<br>
RemoteCommand=""<br>
HttpUrl=""<br>
PDBPath=""<br>
SQLDebugging=""<br>
Environment=""<br>
EnvironmentMerge="true"<br>
DebuggerFlavor=""<br>
MPIRunCommand=""<br>
MPIRunArguments=""<br>
MPIRunWorkingDirectory=""<br>
ApplicationCommand=""<br>
ApplicationArguments=""<br>
ShimCommand=""<br>
MPIAcceptMode=""<br>
MPIAcceptFilter=""<br>
/><br>
</Configuration><br>
<Configuration<br>
Name="RelWithDebInfo|Win32"<br>
><br>
<DebugSettings<br>
Command="$(TargetPath)"<br>
WorkingDirectory=""<br>
CommandArguments=""<br>
Attach="false"<br>
DebuggerType="3"<br>
Remote="1"<br>
RemoteMachine="RADIMGWS61"<br>
RemoteCommand=""<br>
HttpUrl=""<br>
PDBPath=""<br>
SQLDebugging=""<br>
Environment=""<br>
EnvironmentMerge="true"<br>
DebuggerFlavor=""<br>
MPIRunCommand=""<br>
MPIRunArguments=""<br>
MPIRunWorkingDirectory=""<br>
ApplicationCommand=""<br>
ApplicationArguments=""<br>
ShimCommand=""<br>
MPIAcceptMode=""<br>
MPIAcceptFilter=""<br>
/><br>
</Configuration><br>
</Configurations><br>
</VisualStudioUserFile><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>