cmake 找不到 qt 5.1.1
本文介绍了cmake 找不到 qt 5.1.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚为 Windows 32 位(MinGW 4.8,OpenGL)安装了 Qt 5.1.1,并尝试将其添加到我的 cmake 中.但 CMake 只是不想找到它,我不知道为什么.我错过了什么?我需要设置环境变量还是什么?
I just installed the Qt 5.1.1 for Windows 32-bit (MinGW 4.8, OpenGL) and tried to add it to my cmake. But CMake just does not want to find it and i dont know why. What am i missing? Do i need to set an environment variable or something?
这是我的 cmake :
Here is my cmake :
这是 cmake-gui 的输出:
and this is the output of cmake-gui :
推荐答案
Qt安装需要设置CMAKE_PREFIX_PATH.
You need to set the CMAKE_PREFIX_PATH to the Qt installation.
见http://doc.qt.io/qt-5/cmake-manual.html
这篇关于cmake 找不到 qt 5.1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!