如何在 Windows 上找到 Qt5 CMake 模块
本文介绍了如何在 Windows 上找到 Qt5 CMake 模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在 Windows 上使用 CMake 制作一个非常基本的 Qt5 应用程序.我使用 Qt5 的文档 使用 CMake,而我的 main.cpp
文件只包含一个 main
函数.
I'm trying to make a very basic Qt5 application using CMake on Windows.
I used the documentation of Qt5 to use CMake, and my main.cpp
file just contains a main
function.
我的 CMakeLists.txt
正是:
当我在 MSysGit bash 中输入
When in MSysGit bash I enter
我得到这个输出:
你有什么想法吗?
推荐答案
行后
添加
这就解决了问题.
这篇关于如何在 Windows 上找到 Qt5 CMake 模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!