[Qt-interest] Doubt about library
alessandro.portale at nokia.com
alessandro.portale at nokia.com
Sun Nov 14 08:51:11 CET 2010
If your code is not supposed to be a static or dynamic library, adding the .h and .cpp files, as well as the includepath to your application's .pro file should be fine.
You can also put these .h/.cpp/includepaths into a .pri file and include the .pri file from your application's .pro file. That keeps your .pro file clean and makes the code easily reusable for other .pro files.
________________________________________
From: qt-interest-bounces at trolltech.com [qt-interest-bounces at trolltech.com] On Behalf Of ext miguel abellon [mabellonm at facinf.uho.edu.cu]
Sent: Sunday, November 14, 2010 10:50
To: qt-interest at trolltech.com
Subject: [Qt-interest] Doubt about library
Hi , I have a doubt about a library inclusion in QT with QTCreator in the .pro file.
Iam developing on Windows 7 and my library it is not a static nor dinamic library , dll , but most of the library is made of header files .h and source files , .cpp .
My question is , Do I have to include it in the LIBS in the .pro file ? or it is just enough to include it in the Header and Sources in the pro file?
I also try copying the files to the include directory in the Mingw compiler , because most of the library is made of header files , .h.
Which is the best way to include this library in a project ?, if it is made of only header files and cpp but plenty of both.
Thanks in advance.
Miguel
More information about the Qt-interest-old
mailing list