[qmake] Proper pcsclite linking with qmake

This commit is contained in:
giomba 2019-08-14 01:22:33 +02:00
parent e54cd8f633
commit e6bcf9ccdb
1 changed files with 2 additions and 6 deletions

View File

@ -5,8 +5,6 @@
QT += core
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = cnsparser
TEMPLATE = app
@ -21,7 +19,8 @@ DEFINES += QT_DEPRECATED_WARNINGS
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CONFIG += c++11
CONFIG += c++11 link_pkgconfig
PKGCONFIG += libpcsclite
SOURCES += \
main.cpp \
@ -34,9 +33,6 @@ HEADERS += \
Ex.h \
read_dati_personali_c.h
QMAKE_CXXFLAGS += $(shell pkg-config --cflags libpcsclite)
QMAKE_LFLAGS += $(shell pkg-config --libs libpcsclite)
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin