Skip to content

Commit a1d99a3

Browse files
committed
build for eigen example
1 parent fa69eb2 commit a1d99a3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ linkings = -lpython3.7
1313
# Compiler definitions
1414
definitions = -std=c++11
1515

16+
# Eigen include
17+
eigen_include = -I /usr/local/include/eigen3
18+
1619
examples: minimal basic modern animation nonblock xkcd quiver bar surface subplot fill_inbetween fill update
1720

21+
eigen: eigen_basic
22+
1823
minimal: examples/minimal.cpp matplotlibcpp.h
1924
cd examples && g++ -DWITHOUT_NUMPY minimal.cpp ${includes} ${linkings} -o minimal ${definitions}
2025
#cd examples && g++ minimal.cpp ${includes} ${linkings} -o minimal ${definitions}
@@ -55,5 +60,8 @@ fill: examples/fill.cpp matplotlibcpp.h
5560
update: examples/update.cpp matplotlibcpp.h
5661
cd examples && g++ update.cpp ${includes} ${linkings} -o update ${definitions}
5762

63+
eigen_basic: examples/eigen/basic.cpp matplotlibcpp.h
64+
cd examples/eigen && g++ basic.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions}
65+
5866
clean:
5967
rm -f examples/{minimal,basic,modern,animation,nonblock,xkcd,quiver,bar,surface,subplot,fill_inbetween,fill,update}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy