From e6bcf9ccdb12b06f70b87cbf40eadc8d4322bc13 Mon Sep 17 00:00:00 2001 From: giomba Date: Wed, 14 Aug 2019 01:22:33 +0200 Subject: [PATCH] [qmake] Proper pcsclite linking with qmake --- cnsparser.pro | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cnsparser.pro b/cnsparser.pro index cc3972f..2ba063f 100644 --- a/cnsparser.pro +++ b/cnsparser.pro @@ -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