X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=test%2FSConscript;h=1ca3bdcbd806a83abeed6d88a76df92dbf453ccf;hb=d06c701dfc59f196bac017708b626f0daa92973f;hp=7e05fba620de851d12498bd2b0db4e1672022dda;hpb=79009fa0674d90e03b7a7bd958f7ee1e20d9b194;p=trackerpp.git diff --git a/test/SConscript b/test/SConscript index 7e05fba..1ca3bdc 100644 --- a/test/SConscript +++ b/test/SConscript @@ -1,12 +1,19 @@ import sys, os Import('env') - env1 = env.Clone() env1.Append(CPPPATH = ['#third_party/googletest/include']) -env1.Append(LIBPATH = ['#third_party/googletest/lib']) + +arch = os.uname()[4] +# Linux desktop or arm +if arch == 'x86_64': + env1.Append(LIBPATH = ['#third_party/googletest/lib/linux-x86_64']) +else: + env1.Append(LIBPATH = ['#third_party/googletest/lib']) + env1['LIBS'] = ['tracker', 'gtest', 'pthread'] +env1.ParseConfig("pkg-config --libs opencv") obj = env1.Object(Glob("*.cpp"))