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