aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>2017-09-04 13:36:47 +0200
committerNiels Ole Salscheider <niels_ole@salscheider-online.de>2017-09-04 20:34:53 +0200
commitfd8a8372edf9f1af9d2fe800a8cb4d8e183a0d17 (patch)
tree6fae5d494bb1da44864d9571c5c1fb05e05eb34c
parent2be36c7d3a4eed9f731038f4ff335281a0790b32 (diff)
downloadqxmpp-fd8a8372edf9f1af9d2fe800a8cb4d8e183a0d17.tar.gz
Install pkgconfig file
-rw-r--r--CMakeLists.txt8
-rw-r--r--qxmpp.pc.in13
2 files changed, 21 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 21782128..bbc43278 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,3 +42,11 @@ install(
COMPONENT Devel
)
+# Generate qxmpp.pc
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qxmpp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/qxmpp.pc @ONLY)
+install(
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/qxmpp.pc
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
+ COMPONENT Devel
+)
+
diff --git a/qxmpp.pc.in b/qxmpp.pc.in
new file mode 100644
index 00000000..69e29ba9
--- /dev/null
+++ b/qxmpp.pc.in
@@ -0,0 +1,13 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@/qxmpp
+
+
+Name: Qxmpp
+Description: Qxmpp Library
+Version: @VERSION_STRING@
+Libs: -lqxmpp
+Libs.private: -lQt5Network -lQt5Xml -lQt5Core
+Cflags: -I${includedir}
+