7.1.  Building and Reusing Libraries

[ fromfile: reusinglibs.xml id: reusinglibs ]

[Note]Note

When we set up projects that reuse these libraries, we always assume that the shell/environment variable CPPLIBS (or %CPPLIBS% in Windows) has been properly set to contain the "libs root".

INCLUDEPATH += $$(CPPLIBS)/dataobjects  # the source header files
LIBS += -L$$(CPPLIBS)             # add this to the lib search path
LIBS += -ldataobjects                   # link with libdataobjects.so