Multiple build configurations with qmake and qt pr

2019-06-25 12:50发布

I am using Qt and qmake for some project on Windows.

I use qmake to generate visual studio's .sln and .vcproj files.

There is one problem that I could not solve now. When I use visual studio, I can specify new Project Build Configuration other than debug and release as How to: Create and Edit Configurations sad, so I can have build configurations like:

  • Debug
  • Release
  • DebugFeatureOn
  • ReleaseFeatureOn

But when use qmake, I can do is set CONFIG variable to add new configs, but when run qmake -tp vc to generate visual studio project files, vs's Build Configuration only has debug and release.

So I wonder if there is a way to create new build configuration using qmake.

Thanks.

0条回答
登录 后发表回答