OpencvでCUDAを有効にする場合に必要になる。
environment
・windows 10
・cpu ryzen 3700x
・gpu ncvidia-rtx3900
software
・anaconda
・ninja
・cmake
・git
・opencv-4.5.0
・ant 1.8.2
・open-jdk-15
・cuda 11
・visual studio 2019
cmd.exe
mkdir vtk
git clone --recursive https://github.com/Kitware/VTK
cd VTK
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -T host=x64 -DCMAKE_INSTALL_PREFIX="/tools/opt/tools/vtk" ..
cmake --build . --config RELEASE --target install