firemail

标题: prefix of "Qt5" to CMAKE_PREFIX_PATH [打印本页]

作者: Qter    时间: 2023-6-8 19:59
标题: prefix of "Qt5" to CMAKE_PREFIX_PATH
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
No  executable found. Can't check QT_INSTALL_PREFIX
CMake Error at CMakeLists.txt:51 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.


Configuring incomplete, errors occurred!
See also "E:/github/office/qtkeychain/build/CMakeFiles/CMakeOutput.log".


作者: Qter    时间: 2023-6-8 20:01
本帖最后由 Qter 于 2023-6-8 20:02 编辑

set (CMAKE_PREFIX_PATH"C:\\Qt\\Qt5.0.1\\5.0.1\\msvc2010\")
添加上面环境变量
Qt5Config.cmake

CMAKE_PREFIX_PATH
D:\Qt\Qt5.15.2\5.15.2\msvc2019\lib\cmake\Qt5\





欢迎光临 firemail (http://www.firemail.wang:8088/) Powered by Discuz! X3