Creating distribution packages with CMake
CMake can automatically create distribution packages (e.g. Redhat/Fedora .rpm, Debian/Ubuntu .deb, etc), though the created packages will any information on dependencies. To create these packages, add at the end of CMakeLists.txt:
Modify the variables to create an package with the appropriate name and metadata fields. After building the package, run:
1 make package
Source: Harold Sitter's Checkinstall DEBs done the CMake way...