PDA

View Full Version : qmake multiple shared libs



rrlangly
23rd June 2010, 18:19
I'm trying out qmake and have something simple running so far. I have a server process in my server.pro which contains the following.


INCLUDEPATH += ./includes
LIBS += -L/usr/lib64/boost-1_41 -lboost_program_options

CONFIG +=
HEADERS += server.h
SOURCES += main.cpp
TARGET = server


I have a few other *.cpp files that I need to build as a shared library that this server will load during run-time. Can anyone help out w/ what's needed to add the building of multiple/separate shared libraries. I would like for these libraries to be placed in their own directories underneath a 'libs' directory.

Any help much appreciated.

ChrisW67
23rd June 2010, 23:32
Take a look at:
subdirs qmake template for recursive processing of directories (and the ordered CONFIG option if needed).
lib qmake template for the shared libraries