You can organize your project as follows:
in sharedlib.pro can add something like this:
TEMPLATE = lib
TARGET = sharedlibr
QT + = core \
gui
DESTDIR = .. / lib
DESTDIR: ensures that the compilation result is copied to the "../lib" folder
as for apps app1 and app2:
TEMPLATE = app
TARGET = app1
QT + = core \
gui
DESTDIR = .. / bin
This is only for development, when creating the installer, libraries and executable files are placed in the appropriate directories, depending on the operating system.
source
share