lava / matplotlib-cpp

Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib
MIT License
4.28k stars 1.12k forks source link

Add modern cmake support #249

Closed fferflo closed 3 years ago

fferflo commented 3 years ago

Adds cmake support without modifications to the rest of the library. This includes an install target which enables including this library from another cmake project with:

find_package(matplotlib_cpp REQUIRED)
target_link_library(YOURTARGET PUBLIC matplotlib_cpp::matplotlib_cpp)
lava commented 3 years ago

Hi, thanks for contributing!

As the formerly very simple Makefile has grown more and more complicated (and as I've become much more acquainted with the inner workings of cmake) I think my rationale for not merging #55 has no merit anymore.