jeudi 5 mars 2015

Running multiple C++ targets within Xcode 5.0

I have an Xcode Project that contains two targets:



  • Target1 - My main application executable

  • Target2 - My test suite executable


The second target(test target) runs my Google Unit Test Framework tests.


I can run both of these targets independently by switching between the two targets and then running like usual - However I want to be able to run my Unit Test target every time I build or run my main application.


I tried going to Edit Scheme > Build > Add Target > UnitTest - which looked like it would be the right place to solve this problem...


However my tests are never run (at least I never see the output) when I run my main application - is there any way I can solve this?


Thanks


Aucun commentaire:

Enregistrer un commentaire