1lessThan(QT_MAJOR_VERSION, 5): error("This version of ColorCode requires Qt 5. For QT 4 try version 0.7.2: http://colorcode.laebisch.com/download")
2
3QMAKE_CFLAGS_DEBUG -= -O2
4QMAKE_CFLAGS_RELEASE -= -O2
5QMAKE_CXXFLAGS_DEBUG -= -O2
6QMAKE_CXXFLAGS_RELEASE -= -O2
7QMAKE_CXXFLAGS += -O3
8QMAKE_CFLAGS += -O3
9TARGET = colorcode
10TEMPLATE = app
11
12QT += widgets
13
14# Input
15HEADERS += about.h \
16    colorcode.h \
17    colorpeg.h \
18    msg.h \
19    pegrow.h \
20    rowhint.h \
21    ccsolver.h \
22    background.h \
23    solutionrow.h \
24    graphicsbtn.h \
25    settings.h \
26    prefdialog.h \
27    pegfactory.h \
28    gamenodisplay.h \
29    timedisplay.h \
30    timedisplaybg.h \
31    highscore.h \
32    ccgame.h \
33    buttonscell.h \
34    buttondelegate.h \
35    cellbtn.h \
36    gametimer.h \
37    savedgamesmodel.h \
38    prevgamesmodel.h \
39    highscoresmodel.h \
40    gametableview.h \
41    gametablesdialog.h \
42    gameslistmodel.h
43FORMS += about.ui \
44    prefdialog.ui \
45    gametablesdialog.ui
46SOURCES += about.cpp \
47    colorcode.cpp \
48    colorpeg.cpp \
49    main.cpp \
50    msg.cpp \
51    pegrow.cpp \
52    rowhint.cpp \
53    ccsolver.cpp \
54    background.cpp \
55    solutionrow.cpp \
56    graphicsbtn.cpp \
57    settings.cpp \
58    prefdialog.cpp \
59    pegfactory.cpp \
60    gamenodisplay.cpp \
61    timedisplay.cpp \
62    timedisplaybg.cpp \
63    highscore.cpp \
64    ccgame.cpp \
65    buttonscell.cpp \
66    buttondelegate.cpp \
67    cellbtn.cpp \
68    gametimer.cpp \
69    savedgamesmodel.cpp \
70    prevgamesmodel.cpp \
71    highscoresmodel.cpp \
72    gametableview.cpp \
73    gametablesdialog.cpp \
74    gameslistmodel.cpp
75RESOURCES += resource.qrc
76OTHER_FILES += docs/GPL.html
77win32:RC_FILE = colorcode.rc
78TRANSLATIONS += trans_de.ts \
79    trans_en.ts \
80    trans_cs.ts \
81    trans_fr.ts \
82    trans_hu.ts \
83    trans_es.ts
84CODECFORTR = UTF-8
85CODECFORSRC = UTF-8
86