projects
/
trackerpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c38aed
)
Add SConstruct instead of makefile
author
Peng Li
<seudut@gmail.com>
Tue, 17 Jul 2018 09:00:12 +0000
(17:00 +0800)
committer
Peng Li
<seudut@gmail.com>
Tue, 17 Jul 2018 09:00:12 +0000
(17:00 +0800)
SConstruct
[new file with mode: 0644]
patch
|
blob
diff --git a/SConstruct
b/SConstruct
new file mode 100644
(file)
index 0000000..
6556a3e
--- /dev/null
+++ b/
SConstruct
@@ -0,0
+1,12
@@
+import sys
+
+env = Environment(CC="g++")
+env.Append(CPPFLAGS = '-Wall -std=c++11')
+
+env.ParseConfig("pkg-config --libs opencv log4cpp")
+#env.Append(LIBS=['-llog4cpp', '-lpthread'])
+
+obj = env.Object(Glob("src/*.cpp")) + env.Object("main.cpp")
+
+env.Program("main", list(obj))
+