~allanlesage/ubuntu-system-settings/add-background-plugin-objectNames

« back to all changes in this revision

Viewing changes to tests/tst_plugins.pro

  • Committer: Tarmac
  • Author(s): Jussi Pakkanen
  • Date: 2013-10-24 14:53:27 UTC
  • mfrom: (317.4.62 ubuntu-system-settings)
  • Revision ID: tarmac-20131024145327-1i7fj7mviod9cdyt
Switch to CMake.

Approved by Sebastien Bacher, Iain Lane, PS Jenkins bot, Alberto Mardegan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include(../common-project-config.pri)
2
 
include($${TOP_SRC_DIR}/common-vars.pri)
3
 
 
4
 
TARGET = tst_plugins
5
 
 
6
 
CONFIG += \
7
 
    debug
8
 
 
9
 
QT += \
10
 
    core \
11
 
    qml \
12
 
    testlib
13
 
 
14
 
LIBS += -lSystemSettings
15
 
QMAKE_LIBDIR += $${TOP_BUILD_DIR}/lib/SystemSettings
16
 
QMAKE_RPATHDIR = $${QMAKE_LIBDIR}
17
 
 
18
 
INCLUDEPATH += $${TOP_SRC_DIR}/lib
19
 
 
20
 
SRC_DIR = $$TOP_SRC_DIR/src
21
 
SOURCES += \
22
 
    tst_plugins.cpp \
23
 
    $$SRC_DIR/debug.cpp \
24
 
    $$SRC_DIR/item-model.cpp \
25
 
    $$SRC_DIR/plugin-manager.cpp \
26
 
    $$SRC_DIR/plugin.cpp
27
 
HEADERS += \
28
 
    $$SRC_DIR/debug.h \
29
 
    $$SRC_DIR/item-model.h \
30
 
    $$SRC_DIR/plugin-manager.h \
31
 
    $$SRC_DIR/plugin.h
32
 
 
33
 
INCLUDEPATH += \
34
 
    . \
35
 
    $$SRC_DIR
36
 
 
37
 
DEFINES += \
38
 
    DEBUG_ENABLED \
39
 
    PLUGIN_MANIFEST_DIR=\\\"$${TOP_SRC_DIR}/tests/data\\\" \
40
 
    PLUGIN_MODULE_DIR=\\\"$${TOP_BUILD_DIR}/tests/plugins\\\" \
41
 
    PLUGIN_QML_DIR=\\\"$${TOP_BUILD_DIR}/tests/plugins\\\" \
42
 
    UNIT_TESTS
43
 
 
44
 
check.commands = "xvfb-run -a ./$$TARGET"
45
 
check.depends = $$TARGET
46
 
QMAKE_EXTRA_TARGETS += check