[Development] Proposing CMake as build tool for Qt 6
alexandru.croitor at qt.io
Mon Jun 17 15:39:28 CEST 2019
> On 17. Jun 2019, at 15:22, Jean-Michaël Celerier <jeanmichael.celerier at gmail.com> wrote:
> How do other build systems solve this ? qmake uses mkspecs, qbs uses qbs modules, meson uses a cross-build file...
> What happens when I want to cross-compile for a new, unknown target with qmake or QBS on Ubuntu ?
> How can I add features to them if they don't currently support them - e.g., a target to generate doxygen files, or to call gcov & generate a coverage report, or whatever new-fangled way to run link-time optimizations -, without patching them, and without adding stuff to my project source tree ? I don't see how the solution can be fundamentally different from CMake's - except that CMake has a large library of scripts contributed by people out there
One nice thing for users of qmake (which is also a con for other reasons), is that when it is built, it has the toolchain info built in.
Whereas with CMake you will always have to specify a -DCMAKE_TOOLCHAIN_FILE=very_long_path_here.
More information about the Development