Skip to content

Files

Latest commit

 

History

History
36 lines (25 loc) · 626 Bytes

find-it-as-a-cmake-package.md

File metadata and controls

36 lines (25 loc) · 626 Bytes
layout title nav_order has_children parent grand_parent has_toc
default
Find it as a CMake Package
1
false
CMake targets
Integration
false

Find it as a CMake Package

If you have the library installed, you can call

find_package(Matplot++)

from your CMake build script.

When creating your executable, link the library to the targets you want:

add_executable(my_target main.cpp)
target_link_libraries(my_target PUBLIC matplot)

Add this header to your source files:

#include <matplot/matplot.h>