From 6218846688669773f9058fdee97df7ea5654cb5b Mon Sep 17 00:00:00 2001 From: codestation Date: Sun, 10 Jan 2016 12:56:12 -0430 Subject: [PATCH] Force recompiling of binaries when the static library changes. --- gui/gui.pro | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gui/gui.pro b/gui/gui.pro index 19b33ef..4f21710 100644 --- a/gui/gui.pro +++ b/gui/gui.pro @@ -4,7 +4,6 @@ include(../common/defines.pri) TARGET = qcma TEMPLATE += app QT += gui widgets network sql -LIBS += -L../common -lqcma_common SOURCES += \ main.cpp \ @@ -81,3 +80,11 @@ win32 { # Windows icon RC_FILE = qcma.rc } + +unix|win32: LIBS += -L$$OUT_PWD/../common/ -lqcma_common + +INCLUDEPATH += $$PWD/../common +DEPENDPATH += $$PWD/../common + +win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../common/qcma_common.lib +else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../common/libqcma_common.a