Consolidate target lib name, path and version across platforms and configs

This commit is contained in:
Konstantin Ritt
2018-11-20 19:58:10 +03:00
parent b15b5efdb4
commit 172c71b027
2 changed files with 7 additions and 5 deletions

View File

@ -1,15 +1,17 @@
TARGET = qmsgpack
VER_MAJ = 0
VER_MIN = 1
VER_PAT = 0
CONFIG -= app_bundle
TEMPLATE = lib
DEFINES += MSGPACK_MAKE_LIB
DESTDIR = $$PWD/../bin
DESTDIR = $$shadowed($$PWD/../bin)
QMAKE_CXXFLAGS += -fPIC
CONFIG += debug_and_release
CONFIG(debug, debug|release) {
TARGET = $$join(TARGET,,,d)
}
TARGET = $$qtLibraryTarget($$TARGET)
VERSION = $$join($$list($$VER_MAJ $$VER_MIN $$VER_PAT), .)
include(../qmsgpack.pri)

View File

@ -1,2 +1,2 @@
INCLUDEPATH += ../../src
LIBS += -L"$$PWD/../bin" -lqmsgpackd
LIBS += -L$$shadowed($$PWD/../bin) -l$$qtLibraryTarget(qmsgpack)