I use Ctest to run a bunch of google tests that I have registered using add_test. Currently, these tests do not take any arguments. However, I want to give them all arguments (common to all, specifically --gtest_output=xml) while running ctest.
I heard that this is possible using that --test-command option, however, I see that we need to use --test-command along with --build-and-test. Is there an example for this usage?
Aucun commentaire:
Enregistrer un commentaire