How to generate vcproj file from .pro file: Difference between revisions
Jump to navigation
Jump to search
AutoSpider (talk | contribs) (Add "cleanup" tag) |
(Cleanup. Added doc links.) |
||
Line 1: | Line 1: | ||
'''English''' [[How_to_generate_vcproj_file_from_.pro_file SimplifiedChinese|简体中文]] | '''English''' [[How_to_generate_vcproj_file_from_.pro_file SimplifiedChinese|简体中文]] | ||
[[Category:HowTo]] | [[Category:HowTo]] | ||
To generate an initial .pro file you can use [https://doc.qt.io/qt-5/qmake-running.html#project-mode-options qmake's project mode]. | |||
To generate a Visual Studio project file, run qmake like this: | |||
qmake - | <code> | ||
qmake -tp vc myproject.pro | |||
</code> | |||
The above command will generate vcxproj, vcproj or dsp file depending on the Visual Studio version you're using. | |||
The above command will generate vcproj or dsp file depending | The -tp switch is documented in the [https://doc.qt.io/qt-5/qmake-running.html#general-options qmake manual]. | ||
You can also add your | You can also add the name of your VS project file name using the -o option. |
Latest revision as of 09:20, 12 June 2020
English 简体中文
To generate an initial .pro file you can use qmake's project mode.
To generate a Visual Studio project file, run qmake like this:
qmake -tp vc myproject.pro
The above command will generate vcxproj, vcproj or dsp file depending on the Visual Studio version you're using. The -tp switch is documented in the qmake manual. You can also add the name of your VS project file name using the -o option.