[Qt-interest] Compile/Run Tests
Ben Swerts
benswerts at telenet.be
Tue Jan 20 20:24:35 CET 2009
> Hello everyone,
>
> Is it possible to specify in the Qt project files
> - root/myproj.pro
> - root/dir1/dir1.pro
> - root/dir2/dir2.pro
> that the two programs
> - root/dir1/test1.cpp
> - root/dir2/test2.cpp
> should be compiled and run with no errors before
> - root/main.cpp
> is compiled?
>
Hi Samuel,
I assume you have a pro file with a SUBDIRS entry? In that pro file you can
add the following lines:
myproj.depends = dir1 dir2
(check the docs for qmake as this is from memory)
If you also want to execute dir1 and dir2 before main is compiled, I'm
afraid I don't know how to do that.
Hope it helps,
Ben
More information about the Qt-interest-old
mailing list