From 7f2c15340c04315902b9db63ad6a49ed82d6e6f1 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Tue, 23 Jul 2019 19:19:44 +0800 Subject: [PATCH] fix: pkg-config support and shared library --- gio-qt/CMakeLists.txt | 2 +- gio-qt/gio-qt.pc.in | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gio-qt/CMakeLists.txt b/gio-qt/CMakeLists.txt index 266adbc..40a7765 100644 --- a/gio-qt/CMakeLists.txt +++ b/gio-qt/CMakeLists.txt @@ -25,7 +25,7 @@ set (QGIO_PRIVATE_CPP_FILES ) # Library -add_library (gio-qt STATIC +add_library (gio-qt SHARED ${QGIO_PUBLIC_HEADER_FILES} ${QGIO_PRIVATE_CPP_FILES} ) diff --git a/gio-qt/gio-qt.pc.in b/gio-qt/gio-qt.pc.in index 67e2d1b..f3625ba 100644 --- a/gio-qt/gio-qt.pc.in +++ b/gio-qt/gio-qt.pc.in @@ -1,12 +1,11 @@ prefix=@DEST_DIR@ -exec_prefix=${prefix} libdir=${prefix}/lib includedir=${prefix}/include Name: gio-qt Description: Qt wrapper library for GIO. -Version: 1.0 -Requires: glibmm-2.4 +Version: 0.1.0 +Requires: glibmm-2.4, Qt5Core Libs: -L${libdir} -lgio-qt -Cflags: -I${includedir} -I{includedir}/gio-qt \ No newline at end of file +Cflags: -I${includedir} -I${includedir}/gio-qt \ No newline at end of file