[Qt-interest] Fwd: Project directory tree with test code subtree (TDD)
ami guru
dosto.walla at gmail.com
Sat Feb 14 17:53:21 CET 2009
Hello Islam
Yes you can configure the qmake to generate the Makefile the way you want.
you need to go through the following section
http://doc.trolltech.com/4.4/qmake-manual.html
And you can also download some free qt application from
http://www.qt-apps.org/
to get the feeling of how those projects have been configured, may be a good
hint to get started.
Hope that helps
Sajjad
---------- Forwarded message ----------
From: Islam Samir Badreldin <islam.badreldin at gmail.com>
Date: Sat, Feb 14, 2009 at 3:28 PM
Subject: [Qt-interest] Project directory tree with test code subtree (TDD)
To: qt-interest at trolltech.com
Hello Everybody,
I am trying to create a new _large_ project with Qt. I want to do unit
testing for every class I have in this project (sort of TDD). I am
asking about how to use 'qmake' in such scenario?
My hierarchy may look something like this:
trunk----> src -->
|
--> test -->
I want the 'test' tree to mirror that of the 'src' tree. What I want to
have is to be able to call 'qmake' then 'make' under _any_ directory in
the 'test' tree and have the Makefile automatically _link_ (not compile)
the needed *.o files from the 'src' tree (i.e. the object code of the
classes I am currently testing). I assume here that the *.o files
actually exist in their proper place under the 'src' tree.
In short: I want the Makefile to _link_ some additional object files
from another directory other than the current build directory!!
Is this a possible setup for the project using 'qmake'? If not, what is
the perfect setup for TDD with Qt and 'qmake'? Any help on this is
largely appreciated!
Best regards,
Islam
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090214/ba000f64/attachment.html
More information about the Qt-interest-old
mailing list