alexandernst
10th November 2010, 19:43
I have a few questions about using libraries with my project.
First of all, I have a library project (attached here). I can build it fine, but I don't know how to make my project (my main app) use it.
I have that in my main app pro file:
INCLUDEPATH += ./libs/qtsingleapplication/
LIBS += -L./libs/qtsingleapplication/ -lqtsingleapplication
But when I try to do a
#include <QtSingleApplication>
I get an error saying that the file or folder can't be found.
What else should I do.
My second question is how can I make QtCreator build my library and then my main app according to debug or release. Also, should I change something in the pro file of my lib or in the pro file of my app to make them see that they should behave in a different way when debug or release is selected.
Regards!
5444
First of all, I have a library project (attached here). I can build it fine, but I don't know how to make my project (my main app) use it.
I have that in my main app pro file:
INCLUDEPATH += ./libs/qtsingleapplication/
LIBS += -L./libs/qtsingleapplication/ -lqtsingleapplication
But when I try to do a
#include <QtSingleApplication>
I get an error saying that the file or folder can't be found.
What else should I do.
My second question is how can I make QtCreator build my library and then my main app according to debug or release. Also, should I change something in the pro file of my lib or in the pro file of my app to make them see that they should behave in a different way when debug or release is selected.
Regards!
5444