Skip to content

Commit 7bbf43a

Browse files
authored
Merge pull request #99 from mrtazz/pkg-config
first attempt at adding a pkg-config setup
2 parents 9b0aaf2 + bf8f364 commit 7bbf43a

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ vendor/*
1212
test-program
1313
.libs
1414

15+
restclient-cpp.pc
16+
1517
*autom4te.cache
1618
*aclocal.m4
1719
*compile

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ AC_CHECK_LIB([curl], [main])
2121
AC_C_INLINE
2222
AC_TYPE_SIZE_T
2323

24-
AC_CONFIG_FILES([Makefile])
24+
AC_CONFIG_FILES([Makefile restclient-cpp.pc])
2525

2626
# enable code coverage with ./configure --enable-coverage
2727
AC_ARG_ENABLE(coverage,

restclient-cpp.pc.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=@prefix@
2+
exec_prefix=@exec_prefix@
3+
libdir=@libdir@
4+
includedir=@includedir@
5+
6+
Name: restclient-cpp
7+
Description: C++ client for making HTTP/REST requests
8+
URL: http://code.mrtazz.com/restclient-cpp/
9+
Version: @VERSION@
10+
Requires: curl
11+
Libs: -L${libdir} -lrestclient-cpp
12+
Cflags: -I${includedir}

0 commit comments

Comments
 (0)