Qmake on Windows

How do I generate a Visual Studio project with all the configurations I need. I can create one with release and debug configurations, but I need a testing configuration as well. I can't seem to find a solid answer on how to make a single Visual Studio project with release, debug, and testing configurations.

Thanks for the help.

What I have right now generates a project with only one of the configurations, and then I have to open the project and build it in visual studio.

Here is what I'm using:

http://pastebin.com/P7A2qesq

If generating a VS project isn't how I'm supposed to build with visual studio using qmake, then I'd like to know how I'm supposed to use this build system with visual studio, because I'm obviously missing somthing, because I can't figure out how to get QMake to generate a testing target.
Last edited on
What's a testing configuration?
If you want to create a new configuration you can do so with the configuration manager https://msdn.microsoft.com/en-us/library/kwybya3w.aspx
I was hoping I'd be able to generate it with qmake so I could have a clean single-step build process, but I guess I'll have to settle for that....

I'll have to re-create the testing config every time I add files to the project, which is why I was hoping to avoid it.

Moschops said:
What's a testing configuration?

Havn't you done unit testing before?
For unit testing I don't think a new configuration is the correct way to go, but rather a separate project
https://msdn.microsoft.com/en-us/library/hh598953.aspx
That doesn't look too bad, but this is a cross-platform project, and, as such, I'm using UnitTest++ for unit testing. Using more than one project is just too fugly and confusing unless you know the project well, and I like to abide by the axiom "keep it stupid simple", especially when it comes to building the program.

So that's out of the question.

Thanks for the suggestion, though.
Last edited on
Topic archived. No new replies allowed.