title: PDB files with CMake install
body: <p>I am using a CMake command to install PDB files to enable debugging in a developer distribution of my C++ application. The command is as below:</p>
  
  <pre><code>INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/Debug
      DESTINATION bin
      FILES_MATCHING
      PATTERN *.pdb
  )
  </code></pre>
  
  <p>Also, I've managed to install the relevant source used to build that developer distribution, in a 'src' folder at the same level, so that my top level distribution folder looks as:</p>
  
  <pre><code>include\
  src\
  lib\
  bin\
  share\
  doc\
  3rdparty\
  etc\
  </code></pre>
  
  <p>How can I let the PDB files 'know' where the source is (I am assuming this is required)? Is there a CMake command that can achieve this? What would be a small example?</p>