Download
同上述博客的编译源码一样,首先下载VTK源码,下载地址为VTK7.0.0.
CMake
打开CMake,设置工程目录如下:
Where is the source code: C:\VTK-7.0.0
Where is build the binaries: C:\VTK-7.0.0\build
CMAKE_INSTALL_PREFIX很重要,默认为C:\Program Files (x86)\VTK,需要修改为你的VTK所在文件夹,在这里博主设置为C:\VTK-7.0.0,不然在之后的install会出错。然后添加一个entry:
Name: CMAKE_DEBUG_POSTFIX
Type: