-
Notifications
You must be signed in to change notification settings - Fork 275
/
Copy pathtests.pro
67 lines (54 loc) · 1.62 KB
/
tests.pro
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#-------------------------------------------------
#
# Unit Test Project of Pencil2D
#
#-------------------------------------------------
! include( ../util/common.pri ) { error( Could not find the common.pri file! ) }
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
QT += core widgets gui xml multimedia svg testlib
TARGET = tests
RESOURCES += data/tests.qrc
INCLUDEPATH += \
../core_lib/src/graphics \
../core_lib/src/graphics/bitmap \
../core_lib/src/graphics/vector \
../core_lib/src/interface \
../core_lib/src/structure \
../core_lib/src/tool \
../core_lib/src/util \
../core_lib/ui \
../core_lib/src/managers
HEADERS += \
src/catch.hpp
SOURCES += \
src/main.cpp \
src/test_colormanager.cpp \
src/test_layer.cpp \
src/test_layercamera.cpp \
src/test_layermanager.cpp \
src/test_object.cpp \
src/test_filemanager.cpp \
src/test_bitmapimage.cpp \
src/test_bitmapbucket.cpp \
src/test_vectorimage.cpp \
src/test_viewmanager.cpp
# --- core_lib ---
INCLUDEPATH += $$PWD/../core_lib/src
BUILDTYPE =
debug_and_release:CONFIG(debug,debug|release) BUILDTYPE = debug
debug_and_release:CONFIG(release,debug|release) BUILDTYPE = release
win32-msvc* {
LIBS += -L$$OUT_PWD/../core_lib/$$BUILDTYPE/ -lcore_lib
PRE_TARGETDEPS += $$OUT_PWD/../core_lib/$$BUILDTYPE/core_lib.lib
}
win32-g++ {
LIBS += -L$$OUT_PWD/../core_lib/$$BUILDTYPE/ -lcore_lib
PRE_TARGETDEPS += $$OUT_PWD/../core_lib/$$BUILDTYPE/libcore_lib.a
}
# --- mac os and linux
unix {
LIBS += -L$$OUT_PWD/../core_lib/ -lcore_lib
PRE_TARGETDEPS += $$OUT_PWD/../core_lib/libcore_lib.a
}