我有具有如下的C++頭文件:CMake的找不到QXmlSimpleReader
#include <QXmlSimpleReader>
#include <QXmlDefaultHandler>
和我的CMake的有下面幾行:
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Xml REQUIRED)
當運行CMake的我收到以下錯誤信息:
QXmlSimpleReader: No such file or directory
#include <QXmlSimpleReader>
我在做什麼錯?
能否請您發表您的CMake的全部內容?你的cmake版本是什麼? – wasthishelpful