
Originally Posted by
d_stranz
Look at some of the .pro files for the Qwt examples, ...
I would also recommend to look at qwt.prf. The internal project files are intended for building the examples only and are very different from what you have to do for building an application against an installed Qwt version.
When properly installed you will find the following qwt.prf in /root/to/qwt/features:
include ( ./qwtconfig.pri )
contains(QWT_CONFIG, QwtDll) {
DEFINES *= QWT_DLL
}
contains(QWT_CONFIG, QwtSvg) {
QT *= svg
}
else {
DEFINES *= QWT_NO_SVG
}
contains(QWT_CONFIG, QwtFramework) {
INCLUDEPATH *= $${QWT_INSTALL_LIBS}/qwt.framework/Headers
LIBS *= -F$${QWT_INSTALL_LIBS}
}
else {
INCLUDEPATH *= $${QWT_INSTALL_HEADERS}
LIBS *= -L$${QWT_INSTALL_LIBS}
}
INCLUDEPATH_QWT = $${INCLUDEPATH}
qtAddLibrary(qwt)
# we don't want qtAddLibrary to expand the
# include path, with directories, that might
# conflict with other installations of qwt
INCLUDEPATH = $${INCLUDEPATH_QWT}
include ( ./qwtconfig.pri )
contains(QWT_CONFIG, QwtDll) {
DEFINES *= QWT_DLL
}
contains(QWT_CONFIG, QwtSvg) {
QT *= svg
}
else {
DEFINES *= QWT_NO_SVG
}
contains(QWT_CONFIG, QwtFramework) {
INCLUDEPATH *= $${QWT_INSTALL_LIBS}/qwt.framework/Headers
LIBS *= -F$${QWT_INSTALL_LIBS}
}
else {
INCLUDEPATH *= $${QWT_INSTALL_HEADERS}
LIBS *= -L$${QWT_INSTALL_LIBS}
}
INCLUDEPATH_QWT = $${INCLUDEPATH}
qtAddLibrary(qwt)
# we don't want qtAddLibrary to expand the
# include path, with directories, that might
# conflict with other installations of qwt
INCLUDEPATH = $${INCLUDEPATH_QWT}
To copy to clipboard, switch view to plain text mode
"CONFIG += qwt" is only a different way for writing "include ( /root/to/qwt/features/qwt.prf )". Note that qwtconfig.pri is also installed and read by qwt.prf - so that the configuration how Qwt had been built is available in your application project file !
Uwe
Bookmarks