*Sent:* Tuesday, January 30, 2024 8:05:32 PM *To:* interest@qt-project.org <interest@qt-project.org> *Subject:* [Interest] CMake - List Sources: qt_add_executable vsqt_add_qml_module ... ported my apps from 5.15 to 6.6, now on my way from QMake to CMake App is not modulari...
engine.loadFromModule("Main_Module", "Main"); qt_add_executable(my_app main.cpp ) include(my_qml_files.cmake) qt_add_qml_module(my_app URI Main_Module QML_FILES ${myqmlfiles} ... RESOURCES, SOURCES... ) I can list all my other cpp SOURCES in qt_add_executable or in qt_add_...
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 allother C++ files in qt_add_executable. thx ...makes sense ekke best regards, Ulf ___ Interest mail...
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 ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest...