aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/tests/tests.pro
blob: d98b9d0ed08b385f1d90dd85b47f05e57d7ea1be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
QT += testlib
QT -= gui

TARGET = tst_machine
CONFIG += console
CONFIG -= app_bundle
CONFIG += c++11

TEMPLATE = app

win32:CONFIG(release, debug|release): LIBS_SUBDIR = release
else:win32:CONFIG(debug, debug|release): LIBS_SUBDIR = debug
else:unix: LIBS_SUBDIR = .

LIBS += -L$$OUT_PWD/../$${LIBS_SUBDIR} -lqtmips_machine -lelf

PRE_TARGETDEPS += $$OUT_PWD/../$${LIBS_SUBDIR}/libqtmips_machine.a

DOLAR=$

unix: LIBS += \
        -Wl,-rpath,\'$${DOLAR}$${DOLAR}ORIGIN/../lib\' \
        # --enable-new-dtags \

INCLUDEPATH += $$PWD/..
DEPENDPATH += $$PWD/..
QMAKE_CXXFLAGS += -std=c++0x

DEFINES += QT_DEPRECATED_WARNINGS

SOURCES += tst_machine.cpp \
    testmemory.cpp \
    testregisters.cpp \
    testprogramloader.cpp \
    testinstruction.cpp \
    testalu.cpp \
    testcore.cpp \
    testcache.cpp

HEADERS += tst_machine.h

DEFINES += SRCDIR=\\\"$$PWD/\\\"