it would be nice if this project could be included as subproject - it creates its own folder for the source code which makes it less mixing with own app source code

it shall be distributed in amalgated version - just placed next to qcustomplot.cpp(same folder)

so library user all that needs to do is place smth like this in his own .pro file:
include (../deps/qcustomplot/QCustomPlot.pri)

noting more.

QCustomPlot.pri contents:

# QCustomPlot as subproject (include project)
# just add to your apps .pro file"
# include (path_to_file/QCustomPlot.pri)

QT += core gui opengl
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

DEFINES += QCUSTOMPLOT_USE_OPENGL

INCLUDEPATH += $$PWD

HEADERS += \
    $$files($$PWD/*.h)

SOURCES += \
    $$files($$PWD/*.cpp)

thank you in advance