title: Is it possible to extract a list from a CMake INSTALL() command
body: <p>I have an INSTALL(DIRECTORY) command which contains a FILES_MATCHING PATTERN and an EXCLUDE option. I would like to get a list of the files that are matched by this command and write it to a file. Is it possilbe to access the result of the INSTALL() command or do I have to reproduce it's behavior into a list manually?</p>
  
  <p>My INSTALL() command looks like this:</p>
  
  <pre><code>INSTALL(
    DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
    RELATIVE
    DESTINATION include/${PROJECT_NAME}
    FILES_MATCHING PATTERN "*.h"
    PATTERN "*_data.h" EXCLUDE)
  </code></pre>