cpp-plot-cvplot-automatic-dependency

Automatically download, build and use OpenCV (with opencv-contrib) and CvPlot for C++ scientific plot application.

How to use

clone the repo in your desired folder ex: cvdemo

git clone https://github.com/BBO-repo/cpp-plot-cvplot-automatic-dependency.git CvPlotDemo
cd CvPlotDemo

run the cmake configuration to generate makefiles in the folder CvPlotDemo/build

cmake -S . -B build

run cmake to build your app

cmake --build build --target all

That's it you're done! You can enjoy displaying wonderful graphics

image image

Notes: Downloading opencv and opencv-contrib may take some time.. fortunately you only do it once
Comments: You could also using previous cmake commands

mkdir build
cd build
cmake ..
make

P.S: Building opencv may take some time .. you could increase number of threads

cmake --build build --target all -j12

Or if using the previous cmake commands

...
make -j12