c3243c9c7014b606efc26146e191a627960e7656
[shibboleth/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     UnknownTest.h \
14     UnmarshallingTest.h \
15     xmltoolingtest.h
16
17 noinst_HEADERS = \
18     XMLObjectBaseTestCase.h
19
20 nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp)
21
22 CLEANFILES = $(nodist_xmltoolingtest_SOURCES)
23
24 do-cxxtestgen:
25         if test $(HFILE) = "xmltoolingtest.h"; then \
26                 $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
27         else \
28                 $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
29         fi;
30
31 $(nodist_xmltoolingtest_SOURCES): %.cpp: %.h
32         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
33
34 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling.la
35
36 EXTRA_DIST = xmltoolingtest.vcproj $(xmltoolingtest_h) data