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"))