From b6906974929e778400c2a84dba8ebf2a2a3f68f4 Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Thu, 1 Sep 2016 12:59:36 -0700 Subject: toolchain: build gtest convenience library Define autoconf/automake rules to build libgtest.la as a convenience library. Add --enable-tests configure option (default:no). Signed-off-by: U. Artie Eoff Reviewed-by: Sean V Kelley --- test/Makefile.am | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 test/Makefile.am (limited to 'test') diff --git a/test/Makefile.am b/test/Makefile.am new file mode 100644 index 0000000..aa79703 --- /dev/null +++ b/test/Makefile.am @@ -0,0 +1,38 @@ +AUTOMAKE_OPTIONS = subdir-objects + +AM_CXXFLAGS = \ + -I$(top_srcdir)/test/gtest/include \ + $(NULL) + +AM_CPPFLAGS = \ + -DGTEST_HAS_PTHREAD=1 \ + -DGTEST_USE_OWN_TR1_TUPLE=0 \ + -DGTEST_LANG_CXX11=1 \ + -DGTEST_HAS_TR1_TUPLE=1 \ + -std=c++11 \ + $(NULL) + +AM_LDFLAGS = \ + -pthread \ + $(NULL) + +noinst_LTLIBRARIES = libgtest.la + +libgtest_la_SOURCES = \ + gtest/src/gtest-all.cc \ + gtest/src/gtest_main.cc \ + $(NULL) + +libgtest_la_CXXFLAGS = \ + -I$(top_srcdir)/test/gtest \ + $(AM_CXXFLAGS) \ + $(NULL) + +EXTRA_DIST = \ + gtest/docs \ + gtest/include \ + gtest/src/*.cc \ + gtest/src/*.h \ + gtest/README.md \ + gtest/LICENSE \ + $(NULL) -- cgit v1.2.3