/*! \page BUILDINSTRUCTIONS How to Build This page explains how to use JKQTPlotter in your own Projects \tableofcontents \section BUILDINSTRUCTIONS_QMAKE Build using QMake \subsection BUILDINSTRUCTIONS_QMAKEINCLUDE QMake Include Project If you want to simply include the JKQTPlotter Source code into your projects, without build a shared or static library and linking against it, you can use one of these QMake-Include files: - lib/jkqtplotter.pri includes the complete library (JKQTPlotter, JKQTFastPlotter, JKQTMathText) - lib/jkqtmathtext.pri includes only JKQTMathText - lib/jkqtfastplotter.pri includes only JKQTFastPlotter . In your QMake-projects it is then sufficient to add a line like: \code{.qmake} include(/lib/jkqtplotter.pri) \endcode \subsection BUILDINSTRUCTIONS_QMAKESTATIC QMake Static Library There are several `.PRO`-files, that can be used to build the full library, or a limited subsets of it as static link library: - staticlib/jkqtplotterlib/jkqtplotterlib.pro builds the complete library (JKQTPlotter, JKQTFastPlotter, JKQTMathText) as static link library - staticlib/jkqtmathtextlib/jkqtmathtextlib.pro builds only JKQTMathText as static link library - staticlib/jkqtfastplotterlib/jkqtfastplotterlib.pro builds only JKQTFastPlotter as static link library . They will produce a static link library that you can include into your projects, e.g. with the following QMake-snippet: \code{.qmake} # include JKQTPlotter library DEPENDPATH += \ /lib \ /staticlib/jkqtplotterlib INCLUDEPATH += /lib CONFIG (debug, debug|release) { DEPENDPATH += /staticlib/jkqtplotterlib/debug LIBS += -L/staticlib/jkqtplotterlib/debug -ljkqtplotterlib_debug } else { DEPENDPATH += /staticlib/jkqtplotterlib/release LIBS += -L/staticlib/jkqtplotterlib/release -ljkqtplotterlib } \endcode This snippet assumes that you built the libraries with the provided `.PRO`-files. You can also add a second `.pro`-file to your projects, which integrates both as subdirs. Such files are used for all examples in this project. Here is an example: \code{.qmake} TEMPLATE = subdirs # the (static library version) of JKQTPlotter jkqtplotterlib_static.file = ../../staticlib/jkqtplotterlib/jkqtplotterlib.pro # your project file, with declared dependencies on jkqtplotterlib_static test_styling.file=$$PWD/test_styling.pro test_styling.depends = jkqtplotterlib_static # add the two entries to SUBDIRS SUBDIRS += jkqtplotterlib_static test_styling \endcode \subsection BUILDINSTRUCTIONS_QMAKEDYNAMIC QMake Dynamic Library There are several `.PRO`-files, that can be used to build the full library, or a limited subsets of it as shred library: - sharedlib/jkqtplotterlib/jkqtplotterlib.pro builds the complete library (JKQTPlotter, JKQTFastPlotter, JKQTMathText) as shared library - sharedlib/jkqtmathtextlib/jkqtmathtextlib.pro builds only JKQTMathText as shared library - sharedlib/jkqtfastplotterlib/jkqtfastplotterlib.pro builds only JKQTFastPlotter as shared library . They will produce a dynamic link library that you can include into your projects, e.g. with the following QMake-snippet: \code{.qmake} # include JKQTPlotter library DEPENDPATH += \ /lib \ /sharedlib/jkqtplotterlib INCLUDEPATH += /lib CONFIG (debug, debug|release) { # ensure that DLLs are copied to the output directory install_jkqtplotter_dll.files = /sharedlib/jkqtplotterlib/debug/jkqtplotterlib_debug.* install_jkqtplotter_dll.path = $$OUT_PWD INSTALLS += install_jkqtplotter_dll # link agains DLLs DEPENDPATH += /sharedlib/jkqtplotterlib/debug LIBS += -L/sharedlib/jkqtplotterlib/debug -ljkqtplotterlib_debug } else { # ensure that DLLs are copied to the output directory install_jkqtplotter_dll.files = /sharedlib/jkqtplotterlib/release/jkqtplotterlib.* install_jkqtplotter_dll.path = $$OUT_PWD INSTALLS += install_jkqtplotter_dll # link agains DLLs DEPENDPATH += /sharedlib/jkqtplotterlib/release LIBS += -L/sharedlib/jkqtplotterlib/release -ljkqtplotterlib } \endcode This snippet assumes that you built the libraries with the provided `.PRO`-files. You can also add a second `.pro`-file to your projects, which integrates both as subdirs. Such files are used for all examples in this project. Here is an example: \code{.qmake} TEMPLATE = subdirs # the (shared library version) of JKQTPlotter jkqtplotterlib_shared.file = ../../sharedlib/jkqtplotterlib.pro # your project file, with declared dependencies on jkqtplotterlib_shared test_styling.file=$$PWD/test_styling.pro test_styling.depends = jkqtplotterlib_shared # add the two entries to SUBDIRS SUBDIRS += jkqtplotterlib_shared test_styling \endcode \note You will have to run a deployment step `make install` before running your executable, so the shared libararies are actually copied to the output directory (see `INSTALLS + ...` above). */