Qmake/Makefile variables
-
Hello all,
I am currently developping a unit testing environment for developpers
This environment is based on Qt/GTestI defined one additionnal target (using the QMAKE_EXTRA_TARGETS qmake variable) to start the unit tests
$qmake
$make testThis is working fine.
But my final objective is to be able to give some additional parameters to this target
For example, I would to start the following command
$qmake
$make test --gtest_filter=MyTest.Basic --gtest_repeat=10How can I reach this objective using qmake mechanism?
In other words, how can I configure qmake so that Makefile addionnal variables are taken into account?
I search about this subject in this forum but without successThis objective is easy when using the raw Makefile mechanism
$ cat Makefile
gtest_filter=
all:
echo $(gtest_filter)
$ make gtest_filter=hello
echo hello
hello