Skip to content

Commit 4a689f1

Browse files
author
wanbaocheng
committed
添加CMakeLists.txt
1 parent f23347f commit 4a689f1

12 files changed

Lines changed: 43 additions & 0 deletions

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@
3333

3434
# Build
3535
/examples/build/*
36+
37+
.idea
38+
/ref
39+
/urdfdom_build
40+
/cmake-build*
41+
/*build*
42+
/untrack

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cmake_minimum_required(VERSION 3.12)
2+
project(matplotlibcpp-example)
3+
set(CMAKE_CXX_STANDARD 14)
4+
add_subdirectory(./examples)

examples/CMakeLists.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
include_directories(/opt/anaconda3/include/python3.6m)
2+
link_directories(/opt/anaconda3/lib)
3+
add_executable(bar bar.cpp)
4+
target_link_libraries(bar python3.6m)
5+
add_executable(animation animation.cpp)
6+
target_link_libraries(animation python3.6m)
7+
add_executable(basic basic.cpp)
8+
target_link_libraries(basic python3.6m)
9+
add_executable(fill fill.cpp)
10+
target_link_libraries(fill python3.6m)
11+
add_executable(fill_inbetween fill_inbetween.cpp)
12+
target_link_libraries(fill_inbetween python3.6m)
13+
add_executable(imshow imshow.cpp)
14+
target_link_libraries(imshow python3.6m)
15+
add_executable(minimal minimal.cpp)
16+
target_link_libraries(minimal python3.6m)
17+
add_executable(modern modern.cpp)
18+
target_link_libraries(modern python3.6m)
19+
add_executable(nonblock nonblock.cpp)
20+
target_link_libraries(nonblock python3.6m)
21+
add_executable(quiver quiver.cpp)
22+
target_link_libraries(quiver python3.6m)
23+
add_executable(subplot subplot.cpp)
24+
target_link_libraries(subplot python3.6m)
25+
add_executable(subplot2grid subplot2grid.cpp)
26+
target_link_libraries(subplot2grid python3.6m)
27+
add_executable(surface surface.cpp)
28+
target_link_libraries(surface python3.6m)
29+
add_executable(update update.cpp)
30+
target_link_libraries(update python3.6m)
31+
add_executable(xkcd xkcd.cpp)
32+
target_link_libraries(xkcd python3.6m)

examples/bar.png

-11.7 KB
Binary file not shown.

examples/basic.png

-36.5 KB
Binary file not shown.

examples/fill.png

-61.5 KB
Binary file not shown.

examples/fill_between.png

-24.4 KB
Binary file not shown.

examples/minimal.png

-19.7 KB
Binary file not shown.

examples/modern.png

-29.7 KB
Binary file not shown.

examples/quiver.png

-38.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)