From 77a3660ecc84b49998f7138770ab46462a501020 Mon Sep 17 00:00:00 2001 From: yfzhang <3224485+yfzhang@users.noreply.github.com> Date: Thu, 8 Nov 2018 11:52:14 -0500 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index d73ab8ab..b685bc68 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,15 @@ matplotlib-cpp Welcome to matplotlib-cpp, possibly the simplest C++ plotting library. It is built to resemble the plotting API used by Matlab and matplotlib. +## 安装 +- 把header放到`/usr/local/include`里面 +- 在cmake里添加 +``` +find_package(PythonLibs 2.7) +add_executable(test test.cc) +target_include_directories(test PRIVATE ${PYTHON_INCLUDE_DIRS}) +target_link_libraries(test ${PYTHON_LIBRARIES}) +``` Usage