rdit-ch / itemframework

A Qt-based application framework that allows users to define units and control the flow of data between them.
https://rdit.ch
8 stars 9 forks source link

Add testcase.pri #10

Open t-moe opened 8 years ago

t-moe commented 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/
}