## Copyright (c) 2009, 2010, 2011  Openismus GmbH  <http://www.openismus.com/>
##
## This file is part of glibmm.
##
## glibmm is free software: you can redistribute it and/or modify it
## under the terms of the GNU Lesser General Public License as published
## by the Free Software Foundation, either version 2.1 of the License,
## or (at your option) any later version.
##
## glibmm is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## See the GNU Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with this library.  If not, see <http://www.gnu.org/licenses/>.

AUTOMAKE_OPTIONS = subdir-objects

check_PROGRAMS =				\
	giomm_ioerror/test			\
	giomm_ioerror_and_iodbuserror/test	\
	giomm_simple/test			\
	giomm_asyncresult_sourceobject/test	\
	glibmm_btree/test			\
	glibmm_date/test			\
	glibmm_buildfilename/test		\
	glibmm_nodetree/test			\
	glibmm_ustring_compose/test		\
	glibmm_ustring_format/test		\
	glibmm_value/test			\
	glibmm_valuearray/test			\
	glibmm_variant/test			\
	glibmm_vector/test			\
	glibmm_bool_vector/test			\
	glibmm_bool_arrayhandle/test		\
	glibmm_null_vectorutils/test		\
	glibmm_null_containerhandle/test \
	glibmm_refptr_sigc_bind/test
	
TESTS =	$(check_PROGRAMS)

glibmm_includes = -I$(top_builddir)/glib $(if $(srcdir:.=),-I$(top_srcdir)/glib)
giomm_includes  = -I$(top_builddir)/gio $(if $(srcdir:.=),-I$(top_srcdir)/gio)
local_cppflags  = -I$(top_builddir) $(glibmm_includes) $(giomm_includes)

AM_CPPFLAGS = $(local_cppflags) $(GTHREAD_CFLAGS) $(GIOMM_CFLAGS)
AM_CXXFLAGS = $(GLIBMM_WXXFLAGS)

local_libglibmm = $(top_builddir)/glib/glibmm/libglibmm-$(GLIBMM_API_VERSION).la
local_libgiomm  = $(top_builddir)/gio/giomm/libgiomm-$(GIOMM_API_VERSION).la

LDADD = $(local_libglibmm) $(GLIBMM_LIBS)
giomm_ldadd = $(local_libglibmm) $(local_libgiomm) $(GIOMM_LIBS)

giomm_ioerror_test_SOURCES = giomm_ioerror/main.cc
giomm_ioerror_test_LDADD   = $(giomm_ldadd)

giomm_ioerror_and_iodbuserror_test_SOURCES = giomm_ioerror_and_iodbuserror/main.cc
giomm_ioerror_and_iodbuserror_test_LDADD   = $(giomm_ldadd)

giomm_simple_test_SOURCES  = giomm_simple/main.cc
giomm_simple_test_LDADD    = $(giomm_ldadd)

giomm_asyncresult_sourceobject_test_SOURCES  = giomm_asyncresult_sourceobject/main.cc
giomm_asyncresult_sourceobject_test_LDADD    = $(giomm_ldadd)

glibmm_btree_test_SOURCES                = glibmm_btree/main.cc
glibmm_buildfilename_test_SOURCES        = glibmm_buildfilename/main.cc
glibmm_date_test_SOURCES                 = glibmm_date/main.cc
glibmm_nodetree_test_SOURCES             = glibmm_nodetree/main.cc
glibmm_ustring_compose_test_SOURCES      = glibmm_ustring_compose/main.cc
glibmm_ustring_format_test_SOURCES       = glibmm_ustring_format/main.cc
glibmm_value_test_SOURCES                = glibmm_value/glibmm_value.cc glibmm_value/main.cc
glibmm_valuearray_test_SOURCES           = glibmm_valuearray/main.cc
glibmm_variant_test_SOURCES              = glibmm_variant/main.cc
glibmm_vector_test_SOURCES               = glibmm_vector/main.cc
glibmm_vector_test_LDADD                 = $(giomm_ldadd)
glibmm_bool_vector_test_SOURCES          = glibmm_bool_vector/main.cc
glibmm_bool_arrayhandle_test_SOURCES     = glibmm_bool_arrayhandle/main.cc
glibmm_null_vectorutils_test_SOURCES     = glibmm_null_vectorutils/main.cc
glibmm_null_vectorutils_test_LDADD       = $(giomm_ldadd)
glibmm_null_containerhandle_test_SOURCES = glibmm_null_containerhandle/main.cc
glibmm_null_containerhandle_test_LDADD   = $(giomm_ldadd)
glibmm_refptr_sigc_bind_test_SOURCES     = glibmm_refptr_sigc_bind/main.cc
