src.pro 3.75 KB
Newer Older
1
QT       += core gui
2
3

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
4
equals(QT_MAJOR_VERSION, 5): QT += multimedia
5

6
7
8
9
10
!versionAtLeast(QT_VERSION, 5.14.0) {
    message("Cannot use Qt $${QT_VERSION}")
    error("Use Qt 5.14 or newer")
}

11
CONFIG += c++14
12
13
TEMPLATE = app

14
# Optimisations, flag pour garder les infos de debug
15
QMAKE_CXXFLAGS += -O3 -g
16

17
18
19
20
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

21
INCLUDEPATH += ../include ../include/transition_rules ../include/neighborhood_rules
22
23

SOURCES += \
Yann Boucher's avatar
Yann Boucher committed
24
    colorlabel.cpp \
25
    alphabet.cpp \
26
    mathexpr.cpp \
27
    neighborhood_rules/arbitraryneighborhoodrule.cpp \
Yann Boucher's avatar
Yann Boucher committed
28
    neighborhood_rules/margolusNeighborhoodRule.cpp \
Anthony Noir's avatar
Anthony Noir committed
29
    automaton.cpp \
30
    gridview.cpp \
31
    neighborhoodDialog.cpp \
32
    savingdialog.cpp \
33
    transition_rules/circulartransition.cpp \
34
    transition_rules/lifegametransition.cpp \
35
    main.cpp \
36
    neighborhood_rules/mooreNeighborhoodRule.cpp \
37
    propertyvisitors.cpp \
38
    neighborhood.cpp \
Anthony Noir's avatar
Anthony Noir committed
39
    simulation.cpp \
40
41
42
    structurereader.cpp \
    interface.cpp \
    grid.cpp \
43
    history.cpp \
44
    neighborhood_rules/vonNeumannNeighborhoodRule.cpp \
45
    structurewriter.cpp \
46
    structurelibraryview.cpp \
47
    modelloadingdialog.cpp \
48
    configurationloadingdialog.cpp \
49
    transition_rules/totalistictransition.cpp \
50
    transition_rules/nonisotropictransition.cpp \
51
    uibuildervisitor.cpp
Merwane Bouri's avatar
Merwane Bouri committed
52

53
54

HEADERS += \
Yann Boucher's avatar
Yann Boucher committed
55
    ../include/colorlabel.h \
Anthony Noir's avatar
Anthony Noir committed
56
    ../include/automaton.hpp \
57
    ../include/coord.hpp \
Merwane Bouri's avatar
Merwane Bouri committed
58
    ../include/neighborhood_rules/mooreNeighborhoodRule.hpp \
Yann Boucher's avatar
Yann Boucher committed
59
    ../include/neighborhood_rules/margolusNeighborhoodRule.hpp \
60
    ../include/savingdialog.hpp \
61
    ../include/transition_rules/lifegametransition.h \
62
    ../include/neighborhoodrule.hpp \
63
    ../include/neighborhood_rules/arbitraryneighborhoodrule.hpp \
Merwane Bouri's avatar
Merwane Bouri committed
64
    ../include/neighborhood_rules/mooreNeighborhoodRule.hpp \
Anthony Noir's avatar
Anthony Noir committed
65
    ../include/simulation.hpp \
66
    ../include/neighborhood_rules/vonNeumannNeighborhoodRule.hpp \
67
68
    ../include/property.hpp \
    ../include/propertyvisitors.hpp \
69
    ../include/structure.hpp \
70
    ../include/neighborhood.hpp \
71
    ../include/factory.hpp \
72
    ../include/structurereader.hpp \
Yann Boucher's avatar
Yann Boucher committed
73
    ../include/structurewriter.hpp \
74
75
76
    ../include/gridview.hpp \
    ../include/interface.hpp \
    ../include/grid.h \
77
78
79
    ../include/alphabet.hpp \
    ../include/stateColor.hpp \
    ../include/state.hpp \
80
    ../include/history.h \
81
    ../include/constantes.hpp \
Anthony Noir's avatar
Anthony Noir committed
82
    ../include/structurelibraryview.hpp \
83
84
    ../include/transitionrule.hpp \
    ../include/transition_rules/circulartransition.hpp \
85
    ../include/transition_rules/totalistictransition.hpp \
86
    ../include/modelloadingdialog.hpp \
87
    ../include/neighborhoodDialog.hpp \
88
89
    ../include/configurationloadingdialog.hpp \
    ../include/transition_rules/nonisotropictransition.hpp
90
91

FORMS += \
92
    ../forms/colorlabel.ui \
93
    ../forms/interface.ui \
94
    ../forms/savingdialog.ui \
95
    ../forms/structurelibraryview.ui \
96
    ../forms/modelloadingdialog.ui \
97
    ../forms/neighborhoodWidget.ui \
98
    ../forms/neighborhoodDialog.ui \
99
    ../forms/configurationloadingdialog.ui
100
101
102
103
104
105


# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
106
107
108
109
110
111
112

CONFIG(debug, debug|release) {
    DEBUG_OR_RELEASE = debug
}  else {
    DEBUG_OR_RELEASE = release
}

113
114
115
116
117
118
119
# On copie les fichiers de pattern, de modèle, etc... vers le dossier d'exécution
# https://evileg.com/en/post/476/
CONFIG += file_copies
COPIES += data

data.files = $$files($$PWD/../patterns) $$files($$PWD/../models) $$files($$PWD/../configurations) $$files($$PWD/../extras)
data.path = $$OUT_PWD