From: Peng Li Date: Tue, 17 Jul 2018 09:00:12 +0000 (+0800) Subject: Add SConstruct instead of makefile X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;ds=inline;h=f4ff258d21cf7a785fe5f271f01942fde6d4d1b8;p=trackerpp.git Add SConstruct instead of makefile --- diff --git a/SConstruct b/SConstruct new file mode 100644 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)) +