title: How to specify different folder structure for CPack TGZ generator?
body: <p>I have a CMake project that installs things to a system according to the <code>install</code> command as follows:</p>
  
  <pre><code>install (
      TARGETS myTarget
      RUNTIME DESTINATION bin
      LIBRARY DESTINATION lib
  )
  </code></pre>
  
  <p><code>make install</code> works perfectly. And then I want to have a binary archive:</p>
  
  <pre><code>set(CPACK_GENERATOR "TGZ")
  </code></pre>
  
  <p><code>make package</code> produces an tar.gz file with the same folder structure as the <code>install</code> command specified. However, I want to have a flat structure, that is, put everything (both executables and libraries) in "prefix", without the "bin" and "lib" directory.</p>
  
  <p>Is that possible? May be with some clever use of the component system, the build type system, or <code>CPACK_PROJECT_CONFIG_FILE</code>?</p>