Error with the IDE not being able to recongnize qt_add_qml_module
-
Just started working through the qt creator documentation within the IDE. But have come across an error whereby i'm told "qt_add_qml_module" is an unknown cmake command every time i try to add it into the cmakelists.txt file.
Source code is:qt_add_qml_module(apptransitions URI transitions VERSION 1.0 QML_FILES main.qml Page.qml RESOURCES qt-logo.png) -
Hi and welcome to devnet,
Which version of Qt are you using to build your application ?
-
@SGaist
QT 6.3.1 -
Did you check your kit configuration ?
Which version of cmake are you using ?
Did you check its configuration ? -
Did you check your kit configuration ?
Which version of cmake are you using ?
Did you check its configuration ?@SGaist
I installed a newer version of cmake and that seems to have fixed the problem. Thanks for the help. -
Great !
Then please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer that you deem correct so that other forum users may know a solution has been found :-)