[Qt-interest] How does QtCreator parse the .pro file
Vannoote, Frederik
frederik.vannoote at barco.com
Wed Sep 7 13:32:23 CEST 2011
Hi all,
I'm using QtCreator as IDE. My application has next to the sources also
some unit tests using QTestLib.
My goal is to be able to debug and step through the classes when running
a unit test.
This is my directory structure:
- source
o project.pro
o components
* comp1.pri
* comp2.pri
o some other classes
- tests
o unittests.pro
>From the unittests.pro I want to include the project.pro. I do this
using the regular include(../source/project.pro) statement. However the
paths are not correct. To cover that, I prepend ../source to them using
some qmake functions.
At this point that is working fine. I can compile my unittests using the
command line.
However, when included in QtCreator, it only lists the .pri and .pro
files without the headers and sources.
Due to that, my code completion don't work, nor can I put breakpoints.
How can I overcome this?
Is this the correct approach to do these kind of things?
Kind regards,
Frederik
Frederik Vannoote
Sr.Development Engineer Software
Barco nv
Pres.Kennedypark 35
B-8500 Kortrijk (Belgium)
DISCLAIMER:
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110907/11d044f8/attachment.html
More information about the Qt-interest-old
mailing list