Set fourth file version digit to signify rebuild.
[shibboleth/cpp-xmltooling.git] / xmltoolingtest / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 if BUILD_UNITTEST
4
5 bin_PROGRAMS = xmltoolingtest
6 xmltoolingtest_CXXFLAGS = $(CXXTESTFLAGS)
7 if BUILD_XMLSEC
8 xmltoolingtest_LDFLAGS = $(XMLSEC_LIBS)
9 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling.la
10 else
11 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling-lite.la
12 endif
13
14 else
15
16 bin_PROGRAMS = 
17
18 endif
19
20 if BUILD_XMLSEC
21 xmlsec_sources = \
22     EncryptionTest.h \
23     FilesystemCredentialResolverTest.h \
24     InlineKeyResolverTest.h \
25     MemoryStorageServiceTest.h \
26     PKIXEngineTest.h \
27     SecurityHelperTest.h \
28     SignatureTest.h
29 else
30 xmlsec_sources =
31 endif
32
33 xmltoolingtest_h = \
34     ComplexXMLObjectTest.h \
35     DateTimeTest.h \
36     ExceptionTest.h \
37     KeyInfoTest.h \
38     MarshallingTest.h \
39     NonVisibleNamespaceTest.h \
40     SOAPTest.h \
41     UnmarshallingTest.h \
42     TemplateEngineTest.h \
43     xmltoolingtest.h \
44     ${xmlsec_sources}
45
46 noinst_HEADERS = \
47     XMLObjectBaseTestCase.h \
48     $(xmltoolingtest_h)
49
50 nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp)
51
52 if BUILD_UNITTEST
53 BUILT_SOURCES = $(nodist_xmltoolingtest_SOURCES)
54 CLEANFILES = $(nodist_xmltoolingtest_SOURCES)
55 endif
56
57 do-cxxtestgen:
58         if test "$(CPPFILE)" = "xmltoolingtest.cpp"; then \
59                 $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
60         else \
61                 $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
62         fi;
63
64 $(nodist_xmltoolingtest_SOURCES): %.cpp: %.h
65         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
66
67 EXTRA_DIST = xmltoolingtest.vcxproj xmltoolingtest.vcxproj.filters data