CMake设置
CMake-GUI -> Config -> Specify the generator for this project
选择
(Eclipse CDT4 - MinGW Makefiles)
(Use default native compilers)
Eclipse导入CMake生成的project
File -> Import -> General -> Existing Projects into Workspace -> Next
In "Import Projects" Dialogue, select "Select root directory" and import the generated eclipse project.