Added call to qmake before compiling unit tests to generate Makefile. Also, fixed clean_tests target. (fixed #1826, i hope)

This commit is contained in:
A2K
2010-11-04 22:20:19 +02:00
parent eb48002f88
commit 5284abeb9b
3 changed files with 15 additions and 4 deletions
+12 -3
View File
@@ -7,15 +7,24 @@ SUBDIRS = src doc
DOLLAR = $
build_tests.commands = cd src/unit_tests; make build_tests; cd -
build_tests.commands = cd src/unit_tests; \
qmake -spec $${DOLLAR}$${DOLLAR}QMAKESPEC && \
./unit_tests.sh make build_tests; \
cd -
build_tests.depends = all
run_tests.commands = cd src/unit_tests; make run_tests; cd -
run_tests.commands = cd src/unit_tests; \
qmake -spec $${DOLLAR}$${DOLLAR}QMAKESPEC && \
./unit_tests.sh make run_tests; \
cd -
run_tests.depends = all
tests.depends = run_tests
clean_tests.commands = cd src/unit_tests; make clean_tests; cd -
clean_tests.commands = cd src/unit_tests; \
qmake -spec $${DOLLAR}$${DOLLAR}QMAKESPEC && \
./unit_tests.sh make clean_tests; \
cd -
QMAKE_EXTRA_TARGETS += build_tests run_tests clean_tests tests