Qt: Fix compilation of unit tests

* lang/qt/tests/Makefile.am (AM_CPPFLAGS): Add -DBUILDING_QGPGME.

--
Without building QGpgME the headers of gpgme++ are not included
corretly and taken from an already installed gpgme++.
This commit is contained in:
Andre Heinecke 2016-05-19 10:56:49 +02:00
parent 2c3a5d93e7
commit 375523ead3

View File

@ -36,7 +36,7 @@ LDADD = ../../cpp/src/libgpgmepp.la ../src/libqgpgme.la \
AM_CPPFLAGS = -I$(top_builddir)/src @GPG_ERROR_CFLAGS@ \ AM_CPPFLAGS = -I$(top_builddir)/src @GPG_ERROR_CFLAGS@ \
@GPGME_QT_CFLAGS@ @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ \ @GPGME_QT_CFLAGS@ @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ \
@GPGME_QTTEST_CFLAGS@ \ @GPGME_QTTEST_CFLAGS@ -DBUILDING_QGPGME \
-I$(top_srcdir)/lang/cpp/src -I$(top_srcdir)/lang/qt/src \ -I$(top_srcdir)/lang/cpp/src -I$(top_srcdir)/lang/qt/src \
-DTOP_SRCDIR="$(top_srcdir)" -DTOP_SRCDIR="$(top_srcdir)"