aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 87dd60695182470675477e6593ec67a91adea567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
TESTS =
CLEANFILES =
check_PROGRAMS =

AM_CPPFLAGS = $(GTEST_CPPFLAGS) -I${top_srcdir}/src -Wall -Werror
AM_CXXFLAGS = $(GTEST_CXXFLAGS)

###
###
###

# stock UMB tests on user-visible strings
include $(srcdir)/Makefile.am.strings

###
###
###

TESTS += test-device
check_PROGRAMS += test-device
test_device_SOURCES = test-device.cc
test_device_LDADD = \
	$(top_builddir)/src/libpower.la \
	$(INDICATOR_LIBS) \
	$(UPOWER_LIBS) \
        $(COVERAGE_LDFLAGS) \
	libgtest.a

test_device_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(UPOWER_CFLAGS) \
        $(INDICATOR_CFLAGS) \
        $(COVERAGE_CFLAGS)

check_LIBRARIES = libgtest.a
nodist_libgtest_a_SOURCES = \
  $(GTEST_SOURCE)/src/gtest-all.cc \
  $(GTEST_SOURCE)/src/gtest_main.cc