aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 39ad2d315cc3d22a1687ddb1541db6acd4fa59f1 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
VER=3
IDOLIB = $(top_builddir)/src/libido3-0.1.la

check_LIBRARIES = libgtest.a
check_PROGRAMS = 
TESTS =

AM_CPPFLAGS = \
	$(GTEST_CPPFLAGS) \
	-I${top_srcdir}/src

#############################
# Google Test base library
#############################

nodist_libgtest_a_SOURCES = \
	$(XORG_GTEST_SOURCE)/src/xorg-gtest-all.cpp \
	$(GTEST_SOURCE)/src/gtest-all.cc \
	$(XORG_GTEST_SOURCE)/src/xorg-gtest_main.cpp
libgtest_a_CPPFLAGS = \
	$(XORG_GTEST_CPPFLAGS) \
	$(AM_CPPFLAGS) \
	$(GTEST_CPPFLAGS) -w
libgtest_a_CXXFLAGS = \
	$(AM_CXXFLAGS)

#############################
# Menuitem tests
#############################

TESTS += gtest-menuitems
check_PROGRAMS += gtest-menuitems

gtest_menuitems_SOURCES = \
	gtest-menuitems.cpp
gtest_menuitems_CPPFLAGS = \
	$(GCC_CFLAGS) \
	$(GTK_CFLAGS) \
	$(MAINTAINER_CFLAGS) \
	$(AM_CPPFLAGS)
gtest_menuitems_LDFLAGS = \
	-pthread
gtest_menuitems_LDADD = \
	$(GTK_LIBS) \
	$(IDOLIB) \
	libgtest.a

#############################
# Dialog tests
#############################

TESTS += gtest-dialog
check_PROGRAMS += gtest-dialog

gtest_dialog_SOURCES = \
	gtest-dialog.cpp
gtest_dialog_CPPFLAGS = \
	$(GCC_CFLAGS) \
	$(GTK_CFLAGS) \
	$(MAINTAINER_CFLAGS) \
	$(AM_CPPFLAGS)
gtest_dialog_LDFLAGS = \
	-pthread
gtest_dialog_LDADD = \
	$(GTK_LIBS) \
	$(IDOLIB) \
	libgtest.a