This CMake build includes changes required for VisualGDB to edit the CMakeLists.txt files automatically.
You can get the source code for it here: https://github.com/sysprogs/cmake