#Where to find the header files needed by the source files:
local_cppflags = -I$(top_srcdir) @CAIROMM_CFLAGS@

if AUTOTESTS

# build automated 'tests'
TESTS=test-context test-font-face test-surface test-scaled-font test-font-options test-matrix test-user-font
noinst_PROGRAMS = $(TESTS)
test_context_SOURCES=test-context.cc
test_font_face_SOURCES=test-font-face.cc
test_user_font_SOURCES=test-user-font.cc
test_surface_SOURCES=test-surface.cc
test_scaled_font_SOURCES=test-scaled-font.cc
test_font_options_SOURCES=test-font-options.cc
test_matrix_SOURCES=test-matrix.cc

local_cppflags += -DBOOST_TEST_MAIN
test_surface_CPPFLAGS = $(local_cppflags) -DPNG_STREAM_FILE=\"$(srcdir)/png-stream-test.png\"

else

#don't build anything
TESTS=

endif

AM_CPPFLAGS = $(local_cppflags)

#The libraries that the executable needs to link against:
LIBS = $(top_builddir)/cairomm/libcairomm-1.16.la @LIBS@ @CAIROMM_LIBS@ @BOOST_UNIT_TEST_FRAMEWORK_STATIC_LIB@

EXTRA_DIST=png-stream-test.png
DISTCLEANFILES=test.ps test.pdf
