summaryrefslogtreecommitdiff
path: root/src/tests/Makefile.am
blob: c8f53d06621e9b78e6bbef8b05124f3501885fec (plain) (blame)
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
# $Id$


if UNIT_TESTS_YES

bin_PROGRAMS = tmwserv_test

tmwserv_test_SOURCES = testsmain.cpp \
					   testaccount.h \
					   testaccount.cpp \
					   testcipher.h \
					   testcipher.cpp \
					   testdataprovider.h \
					   testdataprovider.cpp \
					   testrecordset.h \
					   testrecordset.cpp \
					   teststorage.h \
					   teststorage.cpp

tmwserv_test_CXXFLAGS = -Wall $(CPPUNIT_CXXFLAGS)

tmwserv_test_LDFLAGS = $(CPPUNIT_LIBS)

tmwserv_test_LDADD = ../tmwserv-account.o \
					 ../tmwserv-cipher.o \
					 ../tmwserv-dalstorage.o \
					 ../tmwserv-dataprovider.o \
					 ../tmwserv-dataproviderfactory.o \
					 ../tmwserv-logger.o \
					 ../tmwserv-object.o \
					 ../tmwserv-recordset.o \
					 ../tmwserv-storage.o

if BUILD_MYSQL
tmwserv_test_LDADD += ../tmwserv-mysqldataprovider.o
endif

if BUILD_POSTGRESQL
tmwserv_test_LDADD += ../tmwserv-pqdataprovider.o
endif

if BUILD_SQLITE
tmwserv_test_LDADD += ../tmwserv-sqlitedataprovider.o
endif

endif