title: How to create debian package with CPack command (not from CMake's files)?
body: <p>I have CMake project built and installed.
  Now I want to generate debian package (*.deb) from this. In the Internet there are many instructions how to create debian package with adding something to CMake's files, but the project, which I've built does not belongs to me, so I shouldn't modify its source.
  I've found command <code>cpack</code>, which is can also generate deb packages. Unfortunately when I try to use the command:</p>
  
  <pre><code>cpack -G DEB -C cmake/build/directory -P myPackage.deb -R 1.0.
  </code></pre>
  
  <p>I see:</p>
  
  <pre><code>CPack Error: Please specify build tree of the project that uses CMake using CPACK_INSTALL_CMAKE_PROJECTS, specify CPACK_INSTALL_COMMANDS, CPACK_INSTALL_SCRIPT, or CPACK_INSTALLED_DIRECTORIES.
  </code></pre>
  
  <p>Unfortunately the options can't be specified in commands in help:</p>
  
  <pre><code>cpack --help
  </code></pre>
  
  <p>So is it possible to generate debian package with command <code>cpack</code> without any changes to CMake files?</p>