10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d185c6 commit af3aa38Copy full SHA for af3aa38
CMakeLists.txt
@@ -0,0 +1,24 @@
1
+cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
2
+
3
+project(matplotlibcpp DESCRIPTION "Possibly the simplest C++ plotting library")
4
5
+add_library(matplotlibcpp INTERFACE)
6
7
+find_package(Python2 COMPONENTS Development NumPy REQUIRED)
8
9
+target_link_libraries(matplotlibcpp
10
+ INTERFACE
11
+ Python2::Python
12
+ Python2::NumPy
13
+)
14
15
+target_include_directories(matplotlibcpp
16
17
+ ${Python2_INCLUDE_DIRS}
18
+ ${Python2_NumPy_INCLUDE_DIRS}
19
20
21
+target_include_directories(matplotlibcpp INTERFACE
22
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
23
+ $<INSTALL_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
24
matplotlibcpp.h renamed to matplotlibcpp/matplotlibcpp.h
0 commit comments