Importing a CMake project in QtCreator

Normally you just do "Open Project" and then select the CMakeLists.txt as the project file. QtCreator will then ask you to run CMake once (to generate a CodeBlocks build file, which is then interpreted by QtCreator). After that you have native support for your CMake project.

It even works with rather complicated CMake scripts. If you observe hangs etc., you should probably file a bug report with the QtCreator project.


I had a similar issue when qtcreator crashed when opening cmake projects created in older versions of qtcreator. Removing CMakeLists.txt.user and running qt from terminal resolved issue for me.

cd /path/to/project/
qtcreator .