Header fixes.
[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 if BUILD_XMLSEC
11 xmlsec_sources = \
12     SignatureTest.h
13 else
14 xmlsec_sources =
15 endif
16
17 noinst_HEADERS = \
18     XMLObjectBaseTestCase.h \
19     ComplexXMLObjectTest.h \
20     ExceptionTest.h \
21     KeyInfoTest.h \
22     MarshallingTest.h \
23     UnmarshallingTest.h \
24     xmltoolingtest.h \
25     ${xmlsec_sources}
26
27 nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp)
28
29 CLEANFILES = $(nodist_xmltoolingtest_SOURCES)
30
31 do-cxxtestgen:
32         if test $(HFILE) = "xmltoolingtest.h"; then \
33                 $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
34         else \
35                 $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
36         fi;
37
38 $(nodist_xmltoolingtest_SOURCES): %.cpp: %.h
39         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
40
41 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling.la
42
43 EXTRA_DIST = xmltoolingtest.vcproj $(xmltoolingtest_h) data