With the commits of mr the command line tool cmake-format can be used for other sources.
cmake-format