ITK install with IIKVtkGlue Module in Cmake Configure

ITKVtkGlue is a module in ITK, which by default is not built. You need to enable this module with cmake when you build ITK. Also, before you do this, you need to download, build and install VTK (which is very similar to building ITK) first. Assuming you are on a unix-like system, have VTK installed, you would do:

$ mkdir build
$ cd build
$ cmake -DModule_ITKVtkGlue=ON ..

The last option turns the ITKVtkGlue module on by default. And then:

$ make
$ sudo make install

Many of the examples on the ITK Wiki use VtkGlue. You can see how to format your CMakeLists.txt file by looking at any of those.

你可能感兴趣的:(itk,程序人生)