diff --git a/share/qtcreator/qmldesigner/studio_templates/projects/common/CMakeLists.main.txt.tpl b/share/qtcreator/qmldesigner/studio_templates/projects/common/CMakeLists.main.txt.tpl index 0adf6e1c98e..7d37f481602 100644 --- a/share/qtcreator/qmldesigner/studio_templates/projects/common/CMakeLists.main.txt.tpl +++ b/share/qtcreator/qmldesigner/studio_templates/projects/common/CMakeLists.main.txt.tpl @@ -44,3 +44,7 @@ install(TARGETS %{ProjectName}App LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) + +# make IDEs aware of the QML import path +set(QML_IMPORT_PATH ${PROJECT_BINARY_DIR}/qml CACHE PATH + "Path to the custom QML components defined by the project")