Commit 725a01f8 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fix compilation when using belr's pkconfig

parent 7f6f604a
......@@ -91,7 +91,8 @@ fi
if test "$libbelr_found" != "yes" ; then
AC_MSG_ERROR([libbelr not found. Install it and try again])
fi
AC_SUBST(BELR_CFLAGS)
AC_SUBST(BELR_LIBS)
dnl ##################################################
......
......@@ -18,6 +18,9 @@ libbelcard_la_SOURCES=belcard_parser.cpp \
vcard_grammar.cpp \
belcard_utils.cpp
libbelcard_la_CFLAGS=$(BELR_CFLAGS)
libbelcard_la_CXXFLAGS=$(BELR_CFLAGS)
AM_CPPFLAGS=-I$(top_srcdir)/include
libbelcard_la_LIBADD=$(BELR_LIBS) $(BCTOOLBOX_LIBS)
\ No newline at end of file
......@@ -15,11 +15,14 @@ belcard_tester_SOURCES=belcard-tester.cpp belcard-tester.hpp \
belcard-calendar-tester.cpp \
belcard-rfc6474-tester.cpp \
belcard-vcard-tester.cpp
belcard_tester_LDADD=$(top_builddir)/src/libbelcard.la -lbelr $(BCUNIT_LIBS) -lbctoolbox-tester
belcard_tester_LDADD=$(top_builddir)/src/libbelcard.la $(BELR_LIBS) $(BCUNIT_LIBS) -lbctoolbox-tester
belcard_tester_CFLAGS=\
-DBC_CONFIG_FILE=\"config.h\" \
$(BCUNIT_CFLAGS)
belcard_tester_CXXFLAGS=$(BELR_CFLAGS)
belcard_tester_AM_CPPFLAGS=-I$(top_srcdir)/include \
-I$(top_srcdir)/tester \
......
......@@ -9,4 +9,5 @@ belcard_unfolder_LDADD=$(top_builddir)/src/libbelcard.la -lbelr
belcard_parser_SOURCES=belcard-parser.cpp
belcard_parser_LDADD=$(top_builddir)/src/libbelcard.la -lbelr
AM_CXXFLAGS=$(BELR_CFLAGS)
AM_CPPFLAGS=-I$(top_srcdir)/include
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment