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

Eugene Pin's avatar
Eugene Pin committed
3
4
greaterThan(QT_MAJOR_VERSION, 4):
QT += widgets
Yann Boucher's avatar
prions  
Yann Boucher committed
5
6
qtHaveModule(multimedia): DEFINES += HAS_MULTIMEDIA
qtHaveModule(multimedia): QT += multimedia
Eugene Pin's avatar
Eugene Pin committed
7

8

9
CONFIG += c++14
10
TEMPLATE = app
11
TARGET = cellulut
12

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

16
17
18
19
# 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

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

SOURCES += \
Yann Boucher's avatar
Yann Boucher committed
23
    colorlabel.cpp \
24
    alphabet.cpp \
25
    mathexpr.cpp \
26
    neighborhood_rules/arbitraryneighborhoodrule.cpp \
Yann Boucher's avatar
Yann Boucher committed
27
    neighborhood_rules/margolusNeighborhoodRule.cpp \
Anthony Noir's avatar
Anthony Noir committed
28
    automaton.cpp \
29
    gridview.cpp \
30
    neighborhoodDialog.cpp \
31
    savingdialog.cpp \
32
    transition_rules/circulartransition.cpp \
33
    transition_rules/lifegametransition.cpp \
34
    main.cpp \
35
    neighborhood_rules/mooreNeighborhoodRule.cpp \
36
    propertyvisitors.cpp \
37
    neighborhood.cpp \
Anthony Noir's avatar
Anthony Noir committed
38
    simulation.cpp \
39
40
41
    structurereader.cpp \
    interface.cpp \
    grid.cpp \
42
    history.cpp \
43
    gif/gifenc.c \
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 += \
55
    ../include/colorlabel.hpp \
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.hpp \
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
    ../include/gridview.hpp \
    ../include/interface.hpp \
76
    ../include/grid.hpp \
77
78
79
    ../include/alphabet.hpp \
    ../include/stateColor.hpp \
    ../include/state.hpp \
80
    ../include/history.hpp \
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/neighborhoodDialog.ui \
98
    ../forms/configurationloadingdialog.ui
99
100
101
102
103
104


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

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

112
113
114
115
116
117
118
# 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