Permalink
Browse files

Install pkgconfig file

  • Loading branch information...
olesalscheider committed Sep 4, 2017
1 parent 2be36c7 commit fd8a8372edf9f1af9d2fe800a8cb4d8e183a0d17
Showing with 21 additions and 0 deletions.
  1. +8 −0 CMakeLists.txt
  2. +13 −0 qxmpp.pc.in
@@ -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
)
@@ -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}

0 comments on commit fd8a837

Please sign in to comment.