Use qtcreator with makefile project

nkint picture nkint · Aug 28, 2013 · Viewed 49.5k times · Source

I have a makefile project. I know that in Eclipse CDT is possible to load makefile project.

Is it possibile to load it in qtcreator?

Answer

Dmitry picture Dmitry · Aug 29, 2013

As Greenflow mentioned, Qt Creator can import existing project but it doesn't even depend on the existence of the Makefile. All you need to do for import of the existing project is specify the high-level folder in which the sources of the project are located (including sources in subdirectories) and set some name for the project - the name which Qt Creator will use to display its name. Qt Creator also asks you which files should be included to the project but again, it is simply for the display of sources in the project tree, not for build. Qt Creator uses make tool in the specified build directory by default to build your project but you can override this setting. For example, in the company I work for we have a custom build system and a custom build tool. So when I import some project into Qt Creator, I specify the directory with sources, set some name, specify build directory, override the default make build tool by our custom one, add some include paths to file .includes, if necessary, specify macros in file .config and develop things, that's just it.

You can see more detailed information about Import existing project feature of Qt Creator here.