Open t-moe opened 8 years ago
Possible implementation (untested):
include($$PROJECT_ROOT/libs/itemframework/pri/base.pri) LIBS += -L$$BUILDDIR -l$$USERCORE_LIB !mac: QMAKE_LFLAGS += -Wl,--unresolved-symbols=report-all # Set DESTDIR folder DESTDIR = $$BUILDDIR/tests QT += testlib QT -= gui CONFIG += qt console warn_on depend_includepath testcase c++11 CONFIG -= app_bundle TEMPLATE = app # Set Libary path to executable programm file ($ORIGIN) unix:!mac { QMAKE_LFLAGS += -Wl,--rpath=$$BUILDDIR -Wl,--rpath=$$ITEMFRAMEWORK_BUILDDIR } macx { QMAKE_RPATHDIR += $$BUILDDIR # or (relativ): @executable_path/../../../ (should be added by macdeployqt in theory) QMAKE_RPATHDIR += $$ITEMFRAMEWORK_BUILDDIR QMAKE_RPATHDIR += /usr/local/lib/ }
Possible implementation (untested):