How to properly configure QML import path in a C++ defined QML module in a cmake project?
-
Hi all,
Im adding cmake support to the cutehacks duperagent library (http client library), and everything seems to be working just fine, except the QtCreator Qml module import path. The qml engine is capable of importing the module because the unit test runs, but im unable make QtCreator to recognize it. This is the the fork with the cmake support https://github.com/ecruzolivera/duperagentCan someone please help me with this?
Regards, Ernesto
-
@VRonin said in How to properly configure QML import path in a C++ defined QML module in a cmake project?:
set_target_properties(${PROJECT_NAME} PROPERTIES
QT_QML_MODULE_VERSION 1.0
QT_QML_MODULE_URI com.cutehacks.duperagent
)
qt6_qml_type_registration(${PROJECT_NAME})Hi, thanks for the answer but sadly it did not work