Add SConstruct instead of makefile
authorPeng Li <seudut@gmail.com>
Tue, 17 Jul 2018 09:00:12 +0000 (17:00 +0800)
committerPeng Li <seudut@gmail.com>
Tue, 17 Jul 2018 09:00:12 +0000 (17:00 +0800)
SConstruct [new file with mode: 0644]

diff --git a/SConstruct b/SConstruct
new file mode 100644 (file)
index 0000000..6556a3e
--- /dev/null
@@ -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))
+