[Interest] CMake - List Sources: qt_add_executable vs qt_add_qml_module

Ulf Hermann ulf.hermann at qt.io
Tue Jan 30 14:18:04 CET 2024


> I can list all my other cpp SOURCES in qt_add_executable or in 
> qt_add_qml_module,
> what is recommended in this case ?

It doesn't really matter. My recommendation is to list all the C++ files 
that produce types exposed to QML in the QML module and all other C++ 
files in qt_add_executable.

best regards,
Ulf


More information about the Interest mailing list