fix: pkg-config support and shared library

This commit is contained in:
Gary Wang 2019-07-23 19:19:44 +08:00
parent 69e8cc951c
commit 7f2c15340c
2 changed files with 4 additions and 5 deletions

View file

@ -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}
)

View file

@ -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
Cflags: -I${includedir} -I${includedir}/gio-qt