forked from Cryoris/matplotlib-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (36 loc) · 902 Bytes
/
CMakeLists.txt
File metadata and controls
39 lines (36 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
function(add_example basename)
# set C++ standard to C++17
set(CMAKE_CXX_STANDARD 17)
# add WITH_EIGEN, if specified
if(WITH_EIGEN)
add_definitions("-DWITH_EIGEN")
endif()
# add the exectuable and link it to the Python libs
add_executable(${basename} ${basename}.cpp ../matplotlibcpp.h)
target_link_libraries(${basename} ${Python3_LIBRARIES})
endfunction(add_example)
# add the executables
add_example(axlines)
add_example(bar)
add_example(basic)
add_example(contour)
add_example(eigen)
add_example(errorbar)
add_example(fill_inbetween)
add_example(fill)
add_example(imshow)
add_example(legend)
add_example(loglog)
add_example(minimal)
add_example(modern)
add_example(nonblock)
add_example(quiver)
add_example(scatter)
add_example(semilogx)
add_example(semilogy)
add_example(small)
add_example(spy)
add_example(subplot)
add_example(surface)
add_example(update)
add_example(xkcd)