For find_package to be successful, CMake must find the Qt installation in one of the following ways:
Set your CMAKE_PREFIX_PATH environment variable to the Qt 5 installation prefix. This is the recommended way. Set the Qt5_DIR in the CMake cache to the location of the Qt5Config.cmake file. https://doc.qt.io/qt-5/cmake-get-started.html
For find_package to be successful, CMake must find the Qt installation in one of the following ways:
Set your CMAKE_PREFIX_PATH environment variable to the Qt 5 installation prefix. This is the recommended way. Set the Qt5_DIR in the CMake cache to the location of the Qt5Config.cmake file. https://doc.qt.io/qt-5/cmake-get-started.html