Table of contents :
1. Introduction
This repository allow to use QCustomPlot as a shared library compliant with CMake build system.
Besides, this repository also provides community patches available.
2. Current version
Official changelog of the library can be found at official changelog file.
This repository also provide a changelog in order to track change differencies with the official version.
Library version | Type of version (official or community) |
Qt compatibility |
---|---|---|
2.1.1 | Community | Qt 5.8.x -> Qt 6.2.x |
2.1.0 | Official | Qt 4.6.x -> Qt 6.0.0 |
3. How to use
This library can be use as an embedded library in a subdirectory of your project (like a git submodule for example) :
- In the root CMakeLists, add instructions :
add_subdirectory(QCustomPlot-library) # Or if library is put in a folder "dependencies" : add_subdirectory(dependencies/QCustomPlot-library)
- In the application/library CMakeLists, add instructions :
# Link needed libraries
# QCustomPlot library
target_link_libraries(${PROJECT_NAME} PRIVATE qcustomplot)
# Compile needed definitions
target_compile_definitions(${PROJECT_NAME} PRIVATE QCUSTOMPLOT_USE_LIBRARY)
Examples of how to use the library can be found in the associated repository QCustomPlot-examples
4. License
QCustomPlot is released under GPL-3.0 License, so as this repository.