Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.34 KB

integration.md

File metadata and controls

21 lines (18 loc) · 1.34 KB

Integration

CvPlot requires OpenCV. It was tested with OpenCV 3.4 and 4.1, but it should run with any recent version on any platform. There are multiple ways to integrate CvPlot in your project:

Header-only

This is the easiest way and should almost always work. Just be sure you have OpenCV available in the include path.

Conan Package Manager

Just add cvplot/1.2.2 to your conan requires. The conan center package is header only and uses opencv from conan center. You can find an example here.

CMake (advanced)

  • The CMakeLists.txt file in the root folder expects that you run ´conan install´ before.
  • You may also build without Conan or add CvPlot to some project with add_subdirectory. In this case, use the CvPlot subdirectory, not the root CMakeLists.txt!
  • Variables
    • CVPLOT_HEADER_ONLY [default ON]
    • CVPLOT_USE_CONAN [default ON] Turn off to use opencv from elsewhere
    • CVPLOT_WITH_TESTS [default ON]
    • CVPLOT_WITH_EXAMPLES [default ON]
    • BUILD_SHARED_LIBS