tests: scons: Integrate the googletest library into the build.
authorGabe Black <gabeblack@google.com>
Thu, 23 Nov 2017 02:06:14 +0000 (18:06 -0800)
committerGabe Black <gabeblack@google.com>
Tue, 28 Nov 2017 10:58:08 +0000 (10:58 +0000)
commitb86f9210ec5be61fa5adade73bb8b84d552ba630
tree82660eabe348ee2768a8b70d1c55391c3e1d5e7c
parent6ea5639a03e0ed11be8ba688a5e3d2352aef9c28
tests: scons: Integrate the googletest library into the build.

A static library is built using gtest-all.cc and includes the gtest
main function from gtest_main.cc. extra libraries to use when linking
are included in the main environment variable GTEST_LIBS, and extra
CPPFLAGS are in GTEST_CPPFLAGS. The library's path is added to the
library search path, and it's headers to the header search path.

Change-Id: I2bd6f705bd9fac5db9280996f574b168c11ff8ce
Reviewed-on: https://gem5-review.googlesource.com/6083
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
ext/googletest/SConscript [new file with mode: 0644]