First cut at signing support.
[shibboleth/cpp-xmltooling.git] / xmltoolingtest / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 if BUILD_UNITTEST
4 bin_PROGRAMS = xmltoolingtest
5 xmltoolingtest_CXXFLAGS = $(CXXFLAGS) $(CXXTESTFLAGS)
6 else
7 bin_PROGRAMS = 
8 endif
9
10 xmltoolingtest_h = \
11     ComplexXMLObjectTest.h \
12     MarshallingTest.h \
13     Signature.h \
14     UnknownTest.h \
15     UnmarshallingTest.h \
16     xmltoolingtest.h
17
18 noinst_HEADERS = \
19     XMLObjectBaseTestCase.h
20
21 nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp)
22
23 CLEANFILES = $(nodist_xmltoolingtest_SOURCES)
24
25 do-cxxtestgen:
26         if test $(HFILE) = "xmltoolingtest.h"; then \
27                 $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
28         else \
29                 $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
30         fi;
31
32 $(nodist_xmltoolingtest_SOURCES): %.cpp: %.h
33         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
34
35 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling.la
36
37 EXTRA_DIST = xmltoolingtest.vcproj $(xmltoolingtest_h) data