[CMake] Accessing visual studio debugger options
Ryan Pavlik
rpavlik at iastate.edu
Wed Feb 9 16:54:55 EST 2011
This is what my CreateLaunchers.cmake script does -
https://github.com/rpavlik/cmake-modules
<https://github.com/rpavlik/cmake-modules>Lets you do this:
create_default_target_launcher(yourapp
ARGS
"${COMMAND_LINE_ARGS}"
RUNTIME_LIBRARY_DIRS
${RUNTIME_LIBRARY_DIRS}
WORKING_DIRECTORY
"${CMAKE_CURRENT_SOURCE_DIR}"
ENVIRONMENT
${ENVIRONMENT_VARS})
On Wed, Feb 9, 2011 at 1:35 PM, John Drescher <drescherjm at gmail.com> wrote:
> On Wed, Feb 9, 2011 at 2:30 PM, Robert Bielik <robert.bielik at xponaut.se>
> wrote:
> > Louis Hoefler skrev 2011-02-09 19:41:
> >>
> >> Hello everyone,
> >> i created cmake files for a visual studio solution.
> >> The solution compiles, and now I want to
> >> start debugging the testapplication.
> >>
> >> I want to change the command line option,
> >> which is used by the debugger, to invoke the application.
> >>
> >> How can this be done?
> >>
> >> I use cmake 2.8.3 and visual studio 2010.
> >
> > I don't think you can. Those settings are not in any project/solution
> file
> > but are stored as user settings, which of course
> > CMake has nothing to do with.
> >
>
> You could generate this file in cmake using cmake file commands. The
> user files are xml.
>
> Here is an example:
>
> <?xml version="1.0" encoding="Windows-1252"?>
> <VisualStudioUserFile
> ProjectType="Visual C++"
> Version="9.00"
> ShowAllFiles="false"
> >
> <Configurations>
> <Configuration
> Name="Debug|Win32"
> >
> <DebugSettings
> Command="$(TargetPath)"
> WorkingDirectory=""
> CommandArguments=""
> Attach="false"
> DebuggerType="3"
> Remote="1"
> RemoteMachine="RADIMGWS61"
> RemoteCommand=""
> HttpUrl=""
> PDBPath=""
> SQLDebugging=""
> Environment=""
> EnvironmentMerge="true"
> DebuggerFlavor=""
> MPIRunCommand=""
> MPIRunArguments=""
> MPIRunWorkingDirectory=""
> ApplicationCommand=""
> ApplicationArguments=""
> ShimCommand=""
> MPIAcceptMode=""
> MPIAcceptFilter=""
> />
> </Configuration>
> <Configuration
> Name="RelWithDebInfo|Win32"
> >
> <DebugSettings
> Command="$(TargetPath)"
> WorkingDirectory=""
> CommandArguments=""
> Attach="false"
> DebuggerType="3"
> Remote="1"
> RemoteMachine="RADIMGWS61"
> RemoteCommand=""
> HttpUrl=""
> PDBPath=""
> SQLDebugging=""
> Environment=""
> EnvironmentMerge="true"
> DebuggerFlavor=""
> MPIRunCommand=""
> MPIRunArguments=""
> MPIRunWorkingDirectory=""
> ApplicationCommand=""
> ApplicationArguments=""
> ShimCommand=""
> MPIAcceptMode=""
> MPIAcceptFilter=""
> />
> </Configuration>
> </Configurations>
> </VisualStudioUserFile>
>
>
> John
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
--
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University
rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110209/595dcec1/attachment-0001.htm>
More information about the CMake
mailing list