From fd8a8372edf9f1af9d2fe800a8cb4d8e183a0d17 Mon Sep 17 00:00:00 2001 From: Niels Ole Salscheider Date: Mon, 4 Sep 2017 13:36:47 +0200 Subject: Install pkgconfig file --- CMakeLists.txt | 8 ++++++++ qxmpp.pc.in | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 qxmpp.pc.in 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} + -- cgit v1.2.3