Newer
Older
# Find the Qt libraries
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5LinguistTools REQUIRED)
find_package(Qt5Script REQUIRED)
find_package(Qt5Xml REQUIRED)
# Find RandomLib, which must be built and installed before running this compilation
find_package(RandomLib 1.7 REQUIRED)
if(RandomLib_FOUND)
include_directories(${RandomLib_INCLUDE_DIRS})
else()
message(FATAL_ERROR "Unable to find Random library. Please clone, compile and install it before compiling eiimage.")
endif()
# Find Qwt, which must be built and installed before running this compilation
find_package(Qwt 6.0 REQUIRED)
if(QWT_FOUND)
message(STATUS "Qwt library version ${QWT_VERSION_STRING}")
include_directories(${QWT_INCLUDE_DIRS})
else()
message(FATAL_ERROR "Cannot find Qwt library. Please add the Qwt library directory to CMAKE_PREFIX_PATH.")
endif()
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
Algorithms/ClassAnalysis.cpp
Algorithms/ClassAnalysis.cpp
Algorithms/ClassAnalysis.h
Algorithms/Croissance.cpp
Algorithms/Croissance.cpp
Algorithms/Croissance.h
Algorithms/DCT.cpp
Algorithms/DCT.cpp
Algorithms/DCT.h
Algorithms/FFT.cpp
Algorithms/FFT.cpp
Algorithms/FFT.h
Algorithms/Pyramid.cpp
Algorithms/Pyramid.cpp
Algorithms/Pyramid.h
Operations/BFlitOp.cpp
Operations/BFlitOp.h
Operations/CenterOp.cpp
Operations/CenterOp.h
Operations/ClassAnalysisDialog.cpp
Operations/ClassAnalysisDialog.h
Operations/ClassAnalysisOp.cpp
Operations/ClassAnalysisOp.h
Operations/ClassResultOp.cpp
Operations/ClassResultOp.h
Operations/ColorDialog.cpp
Operations/ColorDialog.h
Operations/ColorimetryOp.cpp
Operations/ColorimetryOp.h
Operations/CombineColorOp.cpp
Operations/CombineColorOp.h
Operations/CroissanceOp.cpp
Operations/CroissanceOp.h
Operations/DCTDialog.cpp
Operations/DCTDialog.h
Operations/DCTOp.cpp
Operations/DCTOp.h
Operations/DMMDialog.cpp
Operations/DMMDialog.h
Operations/DMMOp.cpp
Operations/DMMOp.h
Operations/EntropyOp.cpp
Operations/EntropyOp.h
Operations/FFTDialog.cpp
Operations/FFTDialog.h
Operations/FFTOp.cpp
Operations/FFTOp.h
Operations/FlipOp.cpp
Operations/FlipOp.h
Operations/HadamardOp.cpp
Operations/HadamardOp.h
Operations/HistogramOp.cpp
Operations/HistogramOp.h
Operations/HoughDialog.cpp
Operations/HoughDialog.cpp
Operations/HoughDialog.h
Operations/HoughOp.cpp
Operations/HoughOp.cpp
Operations/HoughOp.h
Operations/Huffman.cpp
Operations/Huffman.h
Operations/HuffmanOp.cpp
Operations/HuffmanOp.h
Operations/IFFTOp.cpp
Operations/IFFTOp.h
Operations/InverseHoughDialog.cpp
Operations/InverseHoughDialog.cpp
Operations/InverseHoughDialog.h
Operations/InverseHoughOp.cpp
Operations/InverseHoughOp.cpp
Operations/InverseHoughOp.h
Operations/InversePyramidDialog.cpp
Operations/InversePyramidDialog.h
Operations/InversePyramidOp.cpp
Operations/InversePyramidOp.h
Operations/MeanSquaredErrorOp.cpp
Operations/MeanSquaredErrorOp.h
Operations/MICD.cpp
Operations/MICD.h
Operations/MICDDialog.cpp
Operations/MICDDialog.h
Operations/MICDEncodingOp.cpp
Operations/MICDEncodingOp.h
Operations/NoiseOp.cpp
Operations/NoiseOp.h
Operations/PointOp.cpp
Operations/PointOp.h
Operations/PseudoColorOp.cpp
Operations/PseudoColorOp.h
Operations/PyramidDialog.cpp
Operations/PyramidDialog.h
Operations/PyramidOp.cpp
Operations/PyramidOp.h
Operations/Quantification.cpp
Operations/Quantification.h
Operations/QuantificationDialog.cpp
Operations/QuantificationDialog.h
Operations/QuantificationOp.cpp
Operations/QuantificationOp.h
Operations/QuantificationWidget.cpp
Operations/QuantificationWidget.h
Operations/RandomImgOp.cpp
Operations/RandomImgOp.h
Operations/RejectionRingOp.cpp
Operations/RejectionRingOp.h
Operations/RotateOp.cpp
Operations/RotateOp.h
Operations/ScalingOp.cpp
Operations/ScalingOp.h
Operations/SeparatorOp.cpp
Operations/SeparatorOp.h
Operations/SignalToNoiseOp.cpp
Operations/SignalToNoiseOp.h
Operations/SinusSynthesisOp.cpp
Operations/SinusSynthesisOp.cpp
Operations/SinusSynthesisOp.h
Operations/SplitColorOp.cpp
Operations/SplitColorOp.h
Operations/ThresholdDialog.cpp
Operations/ThresholdDialog.cpp
Operations/ThresholdDialog.h
Operations/ThresholdOp.cpp
Operations/ThresholdOp.cpp
Operations/ThresholdOp.h
Operations/Transforms.cpp
Operations/Transforms.h
Operations/TranslateOp.cpp
Operations/TranslateOp.h
Operations/ZeroCrossingOp.cpp
Operations/ZeroCrossingOp.h
Services/EIImageService.cpp
Services/EIImageService.h
Services/FilteringService.cpp
Services/FilteringService.h
Services/MorphoMatService.cpp
Services/MorphoMatService.cpp
Services/MorphoMatService.h
Services/OperationService.cpp
Services/OperationService.h
Services/OpSetService.cpp
Services/OpSetService.h
Services/PluginManager.cpp
Services/PluginManager.h
Widgets/FilterChoice.cpp
Widgets/FilterChoice.cpp
Widgets/FilterChoice.h
Widgets/FilterEditor.cpp
Widgets/FilterEditor.h
Widgets/FilterEditorItem.cpp
Widgets/FilterEditorItem.h
Widgets/ImageZoneSelector.cpp
Widgets/ImageZoneSelector.h
Widgets/OperationBar.cpp
Widgets/OperationBar.h
Widgets/StructElemViewer.cpp
Widgets/StructElemViewer.h
Widgets/StructElemWindow.cpp
Widgets/StructElemWindow.h
)
set(UIS
Operations/HoughDialog.ui
Operations/InverseHoughDialog.ui
Operations/FFTDialog.ui
Operations/ClassAnalysisDialog.ui
Operations/InversePyramidDialog.ui
Operations/PyramidDialog.ui
Operations/MICDDialog.ui
Operations/DCTDialog.ui
Operations/ColorDialog.ui
Operations/MICDDialog_.ui
)
qt5_wrap_ui(WRAPPED_UIS ${UIS})
set(TS_FILES eiimage_en.ts eiimage_fr.ts)
# Uncommento only 1 of the 2 folowing commands, depending on your needs
# -1- Use current translations files
qt5_add_translation(QM_FILES ${TS_FILES})
# -2- Update translations files with changes from c++ sources
# qt5_create_translation(QM_FILES ${eiimage_SOURCES} ${TS_FILES})
add_executable(eiimage ${eiimage_SOURCES} ${WRAPPED_UIS} ${UIS} ${TS_FILES})
target_link_libraries(eiimage
eiimage_core
Qt5::Core
Qt5::Widgets
Qt5::Gui
Qt5::Script
Qt5::Xml
${RandomLib_LIBRARIES}
${QWT_LIBRARY}
${QWT_LIBRARIES}
GenericInterface
ImageIn
)