Building RPM Packages From Source
To generate RPM packages from the build, supply the
-DRPM=yes flag to CMake.
yes (or whatever) will build generic RPM packages. It is also possible to use one of these special values that will slightly modify what kind of layout the resulting RPM packages will have:
What these do are controlled in the following CMake files: