I have a QML project want to run with Cmake
I have Qt 5.10.1 its Support QtQuick 2.10 and QtQuickControl 2.3
But when I build my project this error show
module "QtQuick" version 2.9 is not installed
I use this code to import QtQuick
find_package(Qt5Quick REQUIRED)
But I think this not search at my Home directory that i install my Qt because when I decrease version of QtQuick to 2.5 in my main.qml file the error solve and this error show
module "QtQuick.Controls" version 2.2 is not installed
Question is: how Can import my Home directory QtQuick and QtQuickControls in my Cmake or any other idea?
find_package(), setCMAKE_PREFIX_PATHvariable, as described in that answer: stackoverflow.com/a/34797156/3440745. - Tsyvarev