Reputation: 134
I have shared library(.so file) and I want to add that file into Qt .pro file.
How can I do it?
Upvotes: 0
Views: 635
Reputation: 170
You should use the LIBS variable as vahancho suggests:
LIBS += -lQtSolutions_SingleApplication-2.6
# and more:
unix:LIBS += -lQxtCore -lQxtWeb -lQxtNetwork -lQtSolutions_IOCompressor-2.3
CONFIG(release, debug|release) {
win32:LIBS += -lbfd -liberty -limagehlp
}
# and so on
http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#libs
Upvotes: 2