title: Installing certain files with CMake
body: <p>I have a source directory structure:</p>
  
  <pre><code>projectSource
  |---src
  |---include
  |---CMakeLists.txt
  </code></pre>
  
  <p>and would like an install directory structure of</p>
  
  <pre><code>projectInstall
  |---bin
  |---include
  |---lib
  </code></pre>
  
  <p>My source directory tree is all under version control, so each source folder contains an additional <code>.svn/</code> directory. What's the easiest way to install all header files from <code>projectSource/include</code> to <code>projectInstall/include</code>, while skipping over the <code>.svn</code> directories?</p>
  
  <p>I'd like to use something like:</p>
  
  <pre><code>set( PROJECT_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include )
  include_directories( ${PROJECT_INCLUDE_DIR} )
  install(DIRECTORY ${PROJECT_INCLUDE_DIR}/
      DESTINATION "include"
      FILES_MATCHING PATTERN "*.h"
      PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
  </code></pre>
  
  <p>but even though I'm (attempting to) install only files matching <code>*.h</code>, I'm still picking up the <code>.svn/</code> directory and contents.</p>