aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/qxmpp.pc11
-rw-r--r--source/source.pro9
2 files changed, 17 insertions, 3 deletions
diff --git a/source/qxmpp.pc b/source/qxmpp.pc
new file mode 100644
index 00000000..3c8483e8
--- /dev/null
+++ b/source/qxmpp.pc
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include/qxmpp
+
+Name: QXmpp
+Description: QXmpp library
+Version: 0.2.0
+Requires: QtCore QtGui QtNetwork QtXml
+Libs: -L${libdir} -lqxmpp
+Cflags: -I${includedir}
diff --git a/source/source.pro b/source/source.pro
index 84149ccf..e7961bd5 100644
--- a/source/source.pro
+++ b/source/source.pro
@@ -109,7 +109,10 @@ SOURCES += QXmppUtils.cpp \
xmlrpc.cpp
# Installation
+PREFIX = /usr
headers.files = $$HEADERS
-headers.path = /usr/include/qxmpp
-target.path = /usr/lib
-INSTALLS += headers target
+headers.path = $$PREFIX/include/qxmpp
+pkgconfig.files = qxmpp.pc
+pkgconfig.path = $$PREFIX/lib/pkgconfig
+target.path = $$PREFIX/lib
+INSTALLS += headers pkgconfig target