title: How can I merge multiple lists of files together with CMake?
body: <p>I have a project built with CMake that needs to copy some resources to the destination folder. Currently I use this code:</p>
  
  <pre><code>file(GLOB files "path/to/files/*")
  foreach(file ${files})
      ADD_CUSTOM_COMMAND(
          TARGET MyProject
          POST_BUILD
          COMMAND ${CMAKE_COMMAND} -E copy "${file}" "${CMAKE_BINARY_DIR}/Debug"
      )
  endforeach()
  </code></pre>
  
  <p>Now I want to copy more files from a different folder. So we want to copy files from both <code>path/to/files</code> and <code>path/to/files2</code> to the same place in the binary folder. One way would be to just duplicate the above code, but it seems unnecessary to duplicate the lengthy custom command.</p>
  
  <p>Is there an easy way to use <code>file</code> (and possibly the <code>list</code> command as well) to concatenate two <code>GLOB</code> lists?</p>