在VTK源码包的Example中,每个模块的例子都有一个CMakeList文件,可之间编译运行。
但VTK版本更新快,模块经常小改,而对于VTK6.x的Example的CMakeLists却没有改动,所以会造成编译错误,如
CMake Error at C:/VTK/CMake/vtkModuleAPI.cmake:120 (message):
Requested modules not available:
vtkRendering
Call Stack (most recent call first):
C:/VTKBuild/VTKConfig.cmake:84 (vtk_module_config)