Qt Creator, CMake project and MSVC compiler

Hi,
I'm working on Windows.
Project configuration is created with help of CMake (with one executable and multiple custom targets to run bat files).
I've created MSVC 2010 build kit. When CMake generator is set to Visual Studio 2010 - build kit reports warning - like : and CMake test build attempt fail.
Then I change CMake generator to "NMake Makefiles". Then CMake regenerates successfully. However no source/header files are visible in project. Moreover - Warning is the same - "CMake generator does not generate a CodeBlocks file".

How to setup this project so I could see and be able to work with files?

Qt Creator 4.2 needs a cmake generator with "CodeBlocks" in its name: Most of the data is extracted from a file ending with the ".cbp" extension (the CodeBlocks project file). So AFAIR the Visual Studio generators are not supported.

The upcoming Qt Creator 4.3 no longer needs the "CodeBlocks" Extragenerator -- provided you use cmake version 3.7. That version supports "server-mode" -- provided you did not exclude it when building cmake). You are free to choose whatever generator you like with such a setup. You also get a better project tree that way. The "CodeBlocks" requirement unfortunately stays for older cmake versions though.