From 23e18e9e09fadbd1cf590a7d69d69c753e974c9d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 6 Mar 2015 14:05:25 -0600 Subject: Linking and building, oh my --- tests/Makefile.am | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am index 7d433ba..ca03f56 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,5 +1,5 @@ -check_LIBRARIES = libgtest.a +check_LTLIBRARIES = libgtest.la check_PROGRAMS = test-gactionmuxer TESTS = $(check_PROGRAMS) @@ -11,13 +11,13 @@ AM_CPPFLAGS = $(GTEST_CPPFLAGS) \ # Google Test ###################################### -nodist_libgtest_a_SOURCES = \ +nodist_libgtest_la_SOURCES = \ $(GTEST_SOURCE)/src/gtest-all.cc \ $(GTEST_SOURCE)/src/gtest_main.cc -libgtest_a_CPPFLAGS = \ +libgtest_la_CPPFLAGS = \ $(GTEST_CPPFLAGS) -w \ $(AM_CPPFLAGS) -libgtest_a_CXXFLAGS = \ +libgtest_la_CXXFLAGS = \ $(AM_CXXFLAGS) ###################################### @@ -45,6 +45,7 @@ indicator_test_SOURCES = \ indicator_test_CPPFLAGS = \ -DINDICATOR_MESSAGES_SERVICE_BINARY="\"$(top_bindir)/service/indicator-messages-service\"" \ + -DSCHEMA_DIR="\"$(bindir)/gsettings-schemas-compiled/\"" \ -std=c++11 \ $(APPLET_CFLAGS) \ $(DBUSTEST_CFLAGS) \ @@ -53,7 +54,8 @@ indicator_test_CPPFLAGS = \ indicator_test_LDADD = \ $(APPLET_LIBS) \ $(DBUSTEST_LIBS) \ - libgtest.a + libgtest.la \ + -lc -lpthread TESTS += indicator-test check_PROGRAMS += indicator-test -- cgit v1.2.3