aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}
+