4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-14 11:29:33 +00:00

Declare correct Qt version for pkg-config

REVIEW: 115050
This commit is contained in:
Uwe L. Korn 2014-01-16 12:59:21 +00:00 committed by Ivan Romanov
parent e2ff4f0a61
commit 9537815da5
2 changed files with 3 additions and 1 deletions

@ -43,6 +43,7 @@ if (Qt5Core_FOUND)
include(GNUInstallDirs)
setup_qt5_dirs()
set(QCA_QT_PC_VERSION "Qt5Core")
else()
set(QT_MIN_VERSION "4.7.0")
set(QT_USE_IMPORTED_TARGETS ON)
@ -55,6 +56,7 @@ else()
# properly set up compile flags (QT_DEBUG/QT_NO_DEBUG, ...)
include(${QT_USE_FILE})
setup_qt4_dirs()
set(QCA_QT_PC_VERSION "QtCore")
endif()
if(SHARED_LIBRARY)

@ -6,6 +6,6 @@ includedir=@QCA_INCLUDE_INSTALL_DIR@/QtCrypto
Name: QCA
Description: Qt Cryptographic Architecture library
Version: @QCA_LIB_VERSION_STRING@
Requires: QtCore
Requires: @QCA_QT_PC_VERSION@
Libs: -L${libdir} -l@QCA_LIB_NAME@
Cflags: -I${includedir}