1
You can let cmake generate a package for you. But don't expect it to be in
2
full conformance with your distribution.
4
You'll need cmake >= 2.6. In theory, all you should have to do is:
6
$ cmake -DCMAKE_INSTALL_TYPE=package-deb /path/to/src
9
For an RPM it should be package-rpm and for TGZ...you can imagine.
11
I'm not sure yet if the RPMs/DEBs generated by cmake/CPack are 100% OK. You can
12
tweak the settings in Packaging-{RPM,DEB}.cmake. If you wanna see how CPack does
13
it and what variables affect it, check out:
15
/usr/share/cmake/Modules/CPackDeb.cmake
16
/usr/share/cmake/Modules/CPackRPM.cmake