File: qt_example.pro

package info (click to toggle)
cppunit 1.13.2-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,980 kB
  • ctags: 3,579
  • sloc: cpp: 18,338; sh: 14,983; ansic: 3,011; makefile: 423; xml: 58; csh: 6
file content (96 lines) | stat: -rw-r--r-- 2,747 bytes parent folder | download | duplicates (5)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#----------------------------------------------------------------------
# File:    qt_example.pro
# Purpose: qmake config file for the QtTestRunner example.
#          The program is built with the QtTestRunner debug staticlib.
#          Set the CONFIG variable accordingly to build it differently.
#----------------------------------------------------------------------

TEMPLATE = app
LANGUAGE = C++
TARGET   = qt_example

# Get rid of possibly predefined options

CONFIG -= debug
CONFIG -= release

CONFIG += qt warn_on debug use_static

#CONFIG += qt warn_on release use_static
#CONFIG += qt warn_on debug use_dll
#CONFIG += qt warn_on release use_dll


CPPUNIT_LIB_DIR = ../../lib   # Location of libraries


#----------------------------------------------------------------------
# MS Windows
#----------------------------------------------------------------------

win32 {
    # Suppress program database creation (should better be done
    # in the qmake spec file)
    QMAKE_CXXFLAGS_DEBUG += /Z7
    QMAKE_CXXFLAGS_DEBUG -= -Gm
    QMAKE_CXXFLAGS_DEBUG -= -Zi
}

win32 {
    use_dll {
        DEFINES += QTTESTRUNNER_DLL
        debug {
            OBJECTS_DIR = DebugDLL
            LIBS += $${CPPUNIT_LIB_DIR}\cppunitd_dll.lib
            LIBS += $${CPPUNIT_LIB_DIR}\qttestrunnerd_dll.lib
        }
        release {
            OBJECTS_DIR = ReleaseDLL
            LIBS += $${CPPUNIT_LIB_DIR}\cppunit_dll.lib
            LIBS += $${CPPUNIT_LIB_DIR}\qttestrunner_dll.lib
        }
    }
    use_static {
        debug {
            OBJECTS_DIR = Debug
            LIBS += $${CPPUNIT_LIB_DIR}\cppunitd.lib
            LIBS += $${CPPUNIT_LIB_DIR}\qttestrunnerd.lib
        }
        release {
            OBJECTS_DIR = Release
            LIBS += $${CPPUNIT_LIB_DIR}\cppunit.lib
            LIBS += $${CPPUNIT_LIB_DIR}\qttestrunner.lib
        }
    }
    DESTDIR = $${OBJECTS_DIR}
}

#----------------------------------------------------------------------
# Linux/Unix
#----------------------------------------------------------------------

unix {
    debug {
        OBJECTS_DIR = .obj_debug
        use_static: LIBS += -L$${CPPUNIT_LIB_DIR} -lqttestrunnerd
        use_dll:    LIBS += -L$${CPPUNIT_LIB_DIR} -lqttestrunnerd_shared
        LIBS += -L$${CPPUNIT_LIB_DIR} -lcppunit
    }
    release {
        OBJECTS_DIR = .obj_release
        use_static: LIBS += -L$${CPPUNIT_LIB_DIR} -lqttestrunner
        use_dll:    LIBS += -L$${CPPUNIT_LIB_DIR} -lqttestrunner_shared
        LIBS += -L$${CPPUNIT_LIB_DIR} -lcppunit
    }
}

#----------------------------------------------------------------------

HEADERS = \
        ExampleTestCases.h

SOURCES = \
        ExampleTestCases.cpp \
        Main.cpp

INCLUDEPATH += . ../../include