Build and install
Building Examples
This will build the examples in the build/examples
directory:
1 2 3 4 |
|
1 2 3 4 |
|
1 2 3 4 |
|
Parallel Build
Replace --parallel 2
with --parallel <number of cores in your machine>
Setting C++ Compiler
If your C++ compiler that supports C++17 is not your default compiler, make sure you provide CMake with the compiler location with the DCMAKE_C_COMPILER and DCMAKE_CXX_COMPILER options. For instance:
1 |
|
Installing
You can 1) use -DMATPLOTPP_BUILD_EXAMPLES=OFF -DMATPLOTPP_BUILD_TESTS=OFF
to bypass the examples and tests, and then 2) cmake --install .
to install Matplot++ on your system:
1 2 3 4 5 |
|
1 2 3 4 5 |
|
1 2 3 4 5 |
|
Parallel Build
Replace --parallel 2
with --parallel <number of cores in your machine>
Create packages
You can also create the binary packages to install Matplot++ on other systems:
1 |
|
1 |
|
1 |
|