src.pro 3.64 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
CONFIG += c++14
7
8
TEMPLATE = app

9
# Optimisations, flag pour garder les infos de debug
10
QMAKE_CXXFLAGS += -O3 -g
11

12
13
14
15
# 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

16
INCLUDEPATH += ../include ../include/transition_rules ../include/neighborhood_rules
17
18

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

48
49

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

FORMS += \
87
    ../forms/colorlabel.ui \
88
    ../forms/interface.ui \
89
    ../forms/savingdialog.ui \
90
    ../forms/structurelibraryview.ui \
91
    ../forms/modelloadingdialog.ui \
92
    ../forms/neighborhoodWidget.ui \
93
    ../forms/neighborhoodDialog.ui \
94
    ../forms/configurationloadingdialog.ui
95
96
97
98
99
100


# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
101
102
103
104
105
106
107

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

108
109
110
111
112
113
114
# 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