[vlmc-devel] [PATCH 2/6] Added libcurlpp dependency.

Paweł Wegner pawel.wegner95 at gmail.com
Mon May 9 13:29:45 CEST 2016


---
 configure.ac    | 3 +++
 src/Makefile.am | 9 ++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 7c07e14..028f6e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,9 @@ AC_PROG_CXX
 
 AX_CXX_COMPILE_STDCXX_11
 
+PKG_CHECK_MODULES([libcurlpp], [curlpp], [have_libcurlpp=yes], [have_libcurlpp=no])
+AM_CONDITIONAL([libcurlpp], [test "$have_libcurlpp" = "yes"])
+
 AC_CONFIG_FILES([
   Makefile
   src/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 6c59c77..7b7b8aa 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,11 @@
 ACLOCAL_AMFLAGS = -I m4
 
+AM_CXXFLAGS = $(libcurlpp_CXXFLAGS)
+
 lib_LTLIBRARIES = libcloudstorage.la
-libcloudstorage_la_SOURCES = ICloudStorage.cpp
+libcloudstorage_la_SOURCES = \
+	ICloudStorage.cpp ICloudStorage.h \
+	GoogleDrive.cpp GoogleDrive.h
+
+libcloudstorage_la_LIBADD = $(libcurlpp_LIBS)
+
-- 
2.7.4



More information about the Vlmc-devel mailing list