Firstly, in Build folder, I run:
cmake -DVTK_DIR:PATH=c:/bjVTK/lib/cmake/vtk-9.0 …
It generated CMakefiles folder and some vcxproj files.
Secondly, I run:
cmake --build . --config Release
It generated Release folder and Win32 folder. Still no where to find an exe file. It looks like the result is the same as opening the vcxproj file and build within VS. I was expecting to build within VS.
The other thing is I only compiled VTK into c:/bjVTK, but not installed it. Because when I try to build the Install target, it failed to copy files to c:/program files (x86) folder due to no access right.
I also put c:/bjVTK/bin into PATH.
What else I could do?