[Qt-creator] CMake and Beautifier

Guenter Schwann guenter at vikingsoftware.com
Thu Jun 11 18:18:47 CEST 2020


On Donnerstag, 11. Juni 2020 17:27:53 CEST Benjamin TERRIER wrote:
> Hi,
> 
> The Beautifier plugin has an option for astyle to "Use file *.astylerc
> defined in project files".
> The documentation states that the file must be defined in DISTFILES. That
> works well for qmake.
> But what about CMake?
> 
> The only way I could make it work is by adding the astylerc file to one of
> the targets (along with the cpp files for this target). But I find it a bit
> ugly to have the whole project style associated with a single target and to
> have it listed along cpp files.
> 
> Does someone know a better solution?

I have files like these in a custom target:

add_custom_target(BuildFiles SOURCES .gitlab-ci.yml _clang-format _clang-tidy lgpl.lic.qtc .gitattributes .gitignore)

-- 
Guenter Schwann
Viking Software
http://www.vikingsoftware.com





More information about the Qt-creator mailing list