add wide test to Makefile.am

This commit is contained in:
Jez Higgins 2012-11-20 08:20:40 +00:00
parent bf8e7e314b
commit f837aa99e1

View file

@ -1,25 +1,31 @@
check_PROGRAMS = xslt_test
if WANT_TESTS
TESTS = $(check_PROGRAMS)
endif
ELEPHANT_INCLUDE = @ELEPHANT_INCLUDES@
LIBELEPHANT = @ELEPHANT_LIBS@
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include @PARSER_HEADERS@ @BOOST_CPPFLAGS@ $(ELEPHANT_INCLUDE)
LIBARABICA = $(top_builddir)/src/libarabica.la
LIBSILLY = ../CppUnit/libsillystring.la
TESTLIBS = $(LIBARABICA) ../CppUnit/libcppunit.la
SYSLIBS = @PARSER_LIBS@
test_sources = scope_test.hpp \
xslt_test.hpp \
xslt_test.cpp
xslt_test_SOURCES = main.cpp \
$(test_sources)
xslt_test_LDADD = $(TESTLIBS) $(LIBELEPHANT) $(SYSLIBS)
xslt_test_DEPENDENCIES = $(TESTLIBS)
check_PROGRAMS = xslt_test
if HAS_STD_WSTRING
check_PROGRAMS += xslt_test_wide
endif
if WANT_TESTS
TESTS = $(check_PROGRAMS)
endif
ELEPHANT_INCLUDE = @ELEPHANT_INCLUDES@
LIBELEPHANT = @ELEPHANT_LIBS@
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include @PARSER_HEADERS@ @BOOST_CPPFLAGS@ $(ELEPHANT_INCLUDE)
LIBARABICA = $(top_builddir)/src/libarabica.la
LIBSILLY = ../CppUnit/libsillystring.la
TESTLIBS = $(LIBARABICA) ../CppUnit/libcppunit.la
SYSLIBS = @PARSER_LIBS@
test_sources = scope_test.hpp \
xslt_test.hpp
xslt_test_SOURCES = main.cpp \
$(test_sources)
xslt_test_LDADD = $(TESTLIBS) $(LIBELEPHANT) $(SYSLIBS)
xslt_test_DEPENDENCIES = $(TESTLIBS)
xslt_test_wide_SOURCES = main_wide.cpp \
$(test_sources)
xslt_test_wide_LDADD = $(TESTLIBS) $(LIBELEPHANT) $(SYSLIBS)
xslt_test_wide_DEPENDENCIES = $(TESTLIBS)