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?