Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
806 views
in Technique[技术] by (71.8m points)

qt creator - Use qtcreator with makefile project

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...