安装VTK时CMAKE中找不到Qt5路径的解决方法

CMAKE VTK的时候要选上Qt,可是Configure之后,Qt5_DIR 一行显示地址没有找到,并报一下错误:


CMake Error at GUISupport/Qt/CMakeLists.txt:72 (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.


解决方案:

手动填上Qt5_DIR的地址,地址要精确到Qt5Config.cmake所在文件夹。

我的文件夹是D:/Program/Qt/QT5.5/5.5/msvc2013_64/lib/cmake/Qt5.


google了这个问题,大神给的答案都是输入文件夹D:/Program/Qt/QT5.5/5.5/msvc2013_64,不过不知道为什么我这里不行。

你可能感兴趣的:(VTK)