title: Debug symbols not created when using cmake
body: <p>I compiled the c++ code library at <a href="http://github.com/RainerKuemmerle/g2o" rel="noreferrer">github.com/RainerKuemmerle/g2o</a> using cmake after adding </p>
  
  <pre><code>set(CMAKE_BUILD_TYPE Debug)
  </code></pre>
  
  <p>so as to be able to debug the application. Then it created a build file named "g2o". But when I try debugging with gdb, this is the output I get.</p>
  
  <pre><code>user2@arm_machine:~/g2o/trunk/bin$ gdb g2o
  GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
  Copyright (C) 2012 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "arm-linux-gnueabihf".
  For bug reporting instructions, please see:
  &lt;http://bugs.launchpad.net/gdb-linaro/&gt;...
  Reading symbols from /scratch/mbaxkms7/ARM_Programs_mbaxkms7/g2o/trunk/bin/g2o...(no debugging symbols found)...done.
  (gdb)
  </code></pre>
  
  <p>Is there any other way to generate debug information while using cmake?</p>