具体报错信息:
CMake Error at Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package):
Could not find a package configuration file provided by “VTK” with any of
the following names:
VTKConfig.cmake
vtk-config.cmake
Add the installation prefix of “VTK” to CMAKE_PREFIX_PATH or set “VTK_DIR”
to a directory containing one of the above files. If “VTK” provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
CMake/ITKModuleEnablement.cmake:338 (include)
CMakeLists.txt:336 (include)
解决方法:
在CMake中Search输入VTK_DIR,在Value中输入VTK安装路径中的VTKConfig.cmake(每个人的创建文档不一样,可以在VTK中进行查找)所在路径即可