Build VTK from source using MinGW/MSys
Here is the reference document on how to build VTK from source in MinGW/MSys
The minimal project for MinGW/MSys can be found here:
Two files are potentially useful in the build process:
http://code.hkpeterpeter.googlepages.com/CMakeLists.txt
http://code.hkpeterpeter.googlepages.com/jconfig.h
(Note: Although not quite accurate, you can think MinGW is a thin abstraction layer which allows you to port softwares in Unix-like environment to Windows with the minimal changes of code. MSys provides a Unix-like shell environment, just like bash/csh).