Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
CMake Cross Compiler and Qt Creator
allenb last edited by
We are starting to use Qt Creator for many of our projects since CMake compatibility has improved dramatically. I have used Qt Creator for generic projects which would create the following file types
The *.config file allowed the defining of preprocessor defines. Is there a similar way to do this with cmake projects?
The reason I ask is one of the cmake projects is configured for cross compiling and many of the default compiler defines are not properly setup e.g. _M_AMD64 is defined instead of __arm__.
Qt Creator automatically detected the build configuration since we already ran cmake to configure building of the project prior to using Qt Creator.
mchinand last edited by
Are some of these architecture-specific variables automatically set by having and choosing an appropriate cross-compiler QtCreator Kit?