-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
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/
}