<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    You might consider using my CreateLaunchers cmake module that will
    set up the debugger for you to add whatever directories you like to
    the PATH (on windows) so that it can find the dynamic libraries.&nbsp; I
    haven't tried it in the case that the libraries are built in the
    same project - you'd probably have to do a little work to figure out
    where they were going to land to be able to pass that path - but it
    works great for successfully finding third-party libraries.&nbsp; (In a
    pinch, you could build the install target, then run the regular one,
    having put the install location of the libraries into your
    RUNTIME_LIBRARY_DIRS)<br>
    <br>
    Example usage:<br>
    <br>
    list(APPEND RUNTIME_LIBRARY_DIRS
    ${VRJUGGLER22_RUNTIME_LIBRARY_DIRS})<br>
    add_executable(roxbury ${SOURCES}<br>
    target_link_libraries(roxbury ${EXTRA_LIBS})<br>
    create_default_target_launcher(roxbury<br>
    &nbsp;&nbsp;&nbsp; FORWARD_ARGS<br>
    &nbsp;&nbsp;&nbsp; RUNTIME_LIBRARY_DIRS<br>
    &nbsp;&nbsp;&nbsp; ${RUNTIME_LIBRARY_DIRS}<br>
    &nbsp;&nbsp;&nbsp; ENVIRONMENT<br>
    &nbsp;&nbsp;&nbsp; ${VRJUGGLER22_ENVIRONMENT})<br>
    <br>
    The module can be found, among other places,&nbsp; in one of my projects
    on Github:
    <a class="moz-txt-link-freetext" href="http://github.com/rpavlik/wiimote-head-tracker-gui/tree/master/cmake/">http://github.com/rpavlik/wiimote-head-tracker-gui/tree/master/cmake/</a><br>
    <br>
    It also creates cmd/sh files for running out of the build tree, with
    the same setup.&nbsp; Takes a lot of the pain out of using third-party
    dlls.<br>
    <br>
    Hope this helps!<br>
    <br>
    Ryan<br>
    <br>
    On 8/20/10 2:10 PM, Knox, Kent wrote:
    <blockquote
cite="mid:C872CBF75AC4BE4093DF425DEA49BA080694387087@sausexmbp02.amd.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">My current codebase produces an executable
          with several dynamically linked libraries.&nbsp; I can&#8217;t step
          through the code under the debugger until I&#8217;ve built the
          &#8216;install&#8217; project, which copies all the binaries into the same
          output directory; they then can find each other.&nbsp; Of course,
          at this point I need to change the debugger command path to
          point to the &#8216;install&#8217; directory to find my executable in its
          new home.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Is there a way to configure cmake and
          visual studio projects such that they know to debug the
          applications built in the install directory? <o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Kent<o:p></o:p></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ryan Pavlik
Human-Computer Interaction Graduate Student
Virtual Reality Applications Center
Iowa State University

<a class="moz-txt-link-freetext" href="http://academic.cleardefinition.com/">http://academic.cleardefinition.com/</a></pre>
  </body>
</html>