Skip to content

Add testcase.pri #10

@t-moe

Description

@t-moe

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/
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions