How to generate vcproj file from .pro file: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''English''' [[How_to_generate_vcproj_file_from_.pro_file SimplifiedChinese|简体中文]]<br />[[Category:HowTo]]
'''English''' [[How_to_generate_vcproj_file_from_.pro_file SimplifiedChinese|简体中文]]
[[Category:HowTo]]


If you simply have bunch of header file and source file, it is very easy to generate .pro file,you dont need to add each file name in .pro.
If you simply have bunch of header file and source file, it is very easy to generate .pro file,you dont need to add each file name in .pro.
Line 5: Line 6:
what you need to do is put all those files in on folder, using command prompt set your qmake version in path and do following
what you need to do is put all those files in on folder, using command prompt set your qmake version in path and do following


qmake -project<br />Above command will create a project file .pro it will name it as of parent folder name.
qmake -project
Above command will create a project file .pro it will name it as of parent folder name.


qmake -tp vc test.pro<br />The above command will generate vcproj or dsp file depending up on what MSVS version you have.<br />You can also add your vcproj file name using -o option.
qmake -tp vc test.pro
The above command will generate vcproj or dsp file depending up on what MSVS version you have.
You can also add your vcproj file name using -o option.

Revision as of 10:23, 25 February 2015

English 简体中文

If you simply have bunch of header file and source file, it is very easy to generate .pro file,you dont need to add each file name in .pro.

what you need to do is put all those files in on folder, using command prompt set your qmake version in path and do following

qmake -project Above command will create a project file .pro it will name it as of parent folder name.

qmake -tp vc test.pro The above command will generate vcproj or dsp file depending up on what MSVS version you have. You can also add your vcproj file name using -o option.