我有一个 CMake 项目。我正在尝试从 QT4 切换到 QT5。
find_package(QT5Widgets REQUIRED) EDIT HERE IS A TYPO problem solved (Qt5... instead of QT5...)
Run Code Online (Sandbox Code Playgroud)
已经给了我
By not providing "FindQT5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"QT5Widgets", but CMake did not find one.
Could not find a package configuration file provided by "QT5Widgets" with
any of the following names:
QT5WidgetsConfig.cmake
qt5widgets-config.cmake
Add the installation prefix of "QT5Widgets" to CMAKE_PREFIX_PATH or set
"QT5Widgets_DIR" to a directory containing one …
Run Code Online (Sandbox Code Playgroud)