forked from fotowall/fotowall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
259 lines (252 loc) · 10.9 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
cmake_minimum_required(VERSION 3.1)
project(fotowall)
find_package(
Qt5
COMPONENTS
REQUIRED
Core
Widgets
Gui
Network
Svg
Xml
OpenGL
WebKit
WebKitWidgets
PrintSupport)
message(STATUS "Qt Version is: ${Qt5_VERSION}")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(SOURCE_FILES
${CMAKE_SOURCE_DIR}/fotowall.qrc
${CMAKE_SOURCE_DIR}/3rdparty/likebackfrontend/LikeBack.cpp
${CMAKE_SOURCE_DIR}/3rdparty/likebackfrontend/LikeBack.h
${CMAKE_SOURCE_DIR}/3rdparty/likebackfrontend/LikeBack_p.h
${CMAKE_SOURCE_DIR}/3rdparty/likebackfrontend/LikeBackDialog.cpp
${CMAKE_SOURCE_DIR}/3rdparty/likebackfrontend/LikeBackDialog.h
${CMAKE_SOURCE_DIR}/3rdparty/pencil/FloodGenerator.cpp
${CMAKE_SOURCE_DIR}/3rdparty/pencil/FloodGenerator.h
${CMAKE_SOURCE_DIR}/3rdparty/pencil/FloodPoly.cpp
${CMAKE_SOURCE_DIR}/3rdparty/pencil/FloodPoly.h
${CMAKE_SOURCE_DIR}/3rdparty/pencil/PencilItem.cpp
${CMAKE_SOURCE_DIR}/3rdparty/pencil/PencilItem.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/controller.cpp
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/controller.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/imageloaderinterface.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/imageloaderqt.cpp
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/imageloaderqt.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/paintcanvas.cpp
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/paintcanvas.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/paintcanvasinterface.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/pdfwriter.cpp
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/pdfwriter.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/posterazorcore.cpp
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/posterazorcore.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/snapspinbox.cpp
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/snapspinbox.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/types.cpp
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/types.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/wizard.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/wizard.cpp
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/wizardcontroller.h
${CMAKE_SOURCE_DIR}/3rdparty/posterazor/wizardcontroller.cpp
${CMAKE_SOURCE_DIR}/3rdparty/qtcolortriangle/qtcolortriangle.cpp
${CMAKE_SOURCE_DIR}/3rdparty/qtcolortriangle/qtcolortriangle.h
${CMAKE_SOURCE_DIR}/3rdparty/richtextedit/richtexteditor.cpp
${CMAKE_SOURCE_DIR}/3rdparty/richtextedit/richtexteditor_p.h
${CMAKE_SOURCE_DIR}/3rdparty/videocapture/bayer.cpp
${CMAKE_SOURCE_DIR}/3rdparty/videocapture/bayer.h
${CMAKE_SOURCE_DIR}/3rdparty/videocapture/sonix_compress.cpp
${CMAKE_SOURCE_DIR}/3rdparty/videocapture/sonix_compress.h
${CMAKE_SOURCE_DIR}/3rdparty/videocapture/VideoDevice.cpp
${CMAKE_SOURCE_DIR}/3rdparty/videocapture/VideoDevice.h
${CMAKE_SOURCE_DIR}/3rdparty/videocapture/VideoInput.cpp
${CMAKE_SOURCE_DIR}/3rdparty/videocapture/VideoInput.h
${CMAKE_SOURCE_DIR}/3rdparty/enricomath.h
${CMAKE_SOURCE_DIR}/3rdparty/gsuggest.cpp
${CMAKE_SOURCE_DIR}/3rdparty/gsuggest.h
${CMAKE_SOURCE_DIR}/App/App.cpp
${CMAKE_SOURCE_DIR}/App/App.h
${CMAKE_SOURCE_DIR}/App/CanvasAppliance.cpp
${CMAKE_SOURCE_DIR}/App/CanvasAppliance.h
${CMAKE_SOURCE_DIR}/App/ExactSizeDialog.cpp
${CMAKE_SOURCE_DIR}/App/ExactSizeDialog.h
${CMAKE_SOURCE_DIR}/App/ExportWizard.cpp
${CMAKE_SOURCE_DIR}/App/ExportWizard.h
${CMAKE_SOURCE_DIR}/App/FotowallFile.cpp
${CMAKE_SOURCE_DIR}/App/FotowallFile.h
${CMAKE_SOURCE_DIR}/App/Hardware3DTest.cpp
${CMAKE_SOURCE_DIR}/App/Hardware3DTest.h
${CMAKE_SOURCE_DIR}/App/HelpAppliance.cpp
${CMAKE_SOURCE_DIR}/App/HelpAppliance.h
${CMAKE_SOURCE_DIR}/App/HelpItem.cpp
${CMAKE_SOURCE_DIR}/App/HelpItem.h
${CMAKE_SOURCE_DIR}/App/HomeAppliance.cpp
${CMAKE_SOURCE_DIR}/App/HomeAppliance.h
${CMAKE_SOURCE_DIR}/App/HomeScene.cpp
${CMAKE_SOURCE_DIR}/App/HomeScene.h
${CMAKE_SOURCE_DIR}/App/MainWindow.cpp
${CMAKE_SOURCE_DIR}/App/MainWindow.h
${CMAKE_SOURCE_DIR}/App/OnlineServices.cpp
${CMAKE_SOURCE_DIR}/App/OnlineServices.h
${CMAKE_SOURCE_DIR}/App/PictureSearchWidget.cpp
${CMAKE_SOURCE_DIR}/App/PictureSearchWidget.h
${CMAKE_SOURCE_DIR}/App/SceneView.cpp
${CMAKE_SOURCE_DIR}/App/SceneView.h
${CMAKE_SOURCE_DIR}/App/Settings.cpp
${CMAKE_SOURCE_DIR}/App/Settings.h
${CMAKE_SOURCE_DIR}/App/UrlHistoryBox.cpp
${CMAKE_SOURCE_DIR}/App/UrlHistoryBox.h
${CMAKE_SOURCE_DIR}/App/VersionCheckDialog.cpp
${CMAKE_SOURCE_DIR}/App/VersionCheckDialog.h
${CMAKE_SOURCE_DIR}/App/WordcloudAppliance.cpp
${CMAKE_SOURCE_DIR}/App/WordcloudAppliance.h
${CMAKE_SOURCE_DIR}/App/WordcloudSidebar.cpp
${CMAKE_SOURCE_DIR}/App/WordcloudSidebar.h
${CMAKE_SOURCE_DIR}/App/Workflow.cpp
${CMAKE_SOURCE_DIR}/App/Workflow.h
${CMAKE_SOURCE_DIR}/Canvas/AbstractConfig.cpp
${CMAKE_SOURCE_DIR}/Canvas/AbstractConfig.h
${CMAKE_SOURCE_DIR}/Canvas/AbstractContent.cpp
${CMAKE_SOURCE_DIR}/Canvas/AbstractContent.h
${CMAKE_SOURCE_DIR}/Canvas/BezierCubicItem.cpp
${CMAKE_SOURCE_DIR}/Canvas/BezierCubicItem.h
${CMAKE_SOURCE_DIR}/Canvas/ButtonItem.cpp
${CMAKE_SOURCE_DIR}/Canvas/ButtonItem.h
${CMAKE_SOURCE_DIR}/Canvas/Canvas.cpp
${CMAKE_SOURCE_DIR}/Canvas/Canvas.h
${CMAKE_SOURCE_DIR}/Canvas/CanvasModeInfo.cpp
${CMAKE_SOURCE_DIR}/Canvas/CanvasModeInfo.h
${CMAKE_SOURCE_DIR}/Canvas/CanvasViewContent.cpp
${CMAKE_SOURCE_DIR}/Canvas/CanvasViewContent.h
${CMAKE_SOURCE_DIR}/Canvas/ContentProperties.cpp
${CMAKE_SOURCE_DIR}/Canvas/ContentProperties.h
${CMAKE_SOURCE_DIR}/Canvas/CornerItem.cpp
${CMAKE_SOURCE_DIR}/Canvas/CornerItem.h
${CMAKE_SOURCE_DIR}/Canvas/MirrorItem.cpp
${CMAKE_SOURCE_DIR}/Canvas/MirrorItem.h
${CMAKE_SOURCE_DIR}/Canvas/PictureConfig.cpp
${CMAKE_SOURCE_DIR}/Canvas/PictureConfig.h
${CMAKE_SOURCE_DIR}/Canvas/PictureContent.cpp
${CMAKE_SOURCE_DIR}/Canvas/PictureContent.h
${CMAKE_SOURCE_DIR}/Canvas/PictureProperties.cpp
${CMAKE_SOURCE_DIR}/Canvas/PictureProperties.h
${CMAKE_SOURCE_DIR}/Canvas/SelectionProperties.cpp
${CMAKE_SOURCE_DIR}/Canvas/SelectionProperties.h
${CMAKE_SOURCE_DIR}/Canvas/StyledButtonItem.cpp
${CMAKE_SOURCE_DIR}/Canvas/StyledButtonItem.h
${CMAKE_SOURCE_DIR}/Canvas/TextConfig.cpp
${CMAKE_SOURCE_DIR}/Canvas/TextConfig.h
${CMAKE_SOURCE_DIR}/Canvas/TextContent.cpp
${CMAKE_SOURCE_DIR}/Canvas/TextContent.h
${CMAKE_SOURCE_DIR}/Canvas/TextProperties.cpp
${CMAKE_SOURCE_DIR}/Canvas/TextProperties.h
${CMAKE_SOURCE_DIR}/Canvas/WebcamContent.cpp
${CMAKE_SOURCE_DIR}/Canvas/WebcamContent.h
${CMAKE_SOURCE_DIR}/Canvas/WordcloudContent.cpp
${CMAKE_SOURCE_DIR}/Canvas/WordcloudContent.h
${CMAKE_SOURCE_DIR}/Frames/Frame.cpp
${CMAKE_SOURCE_DIR}/Frames/Frame.h
${CMAKE_SOURCE_DIR}/Frames/FrameFactory.cpp
${CMAKE_SOURCE_DIR}/Frames/FrameFactory.h
${CMAKE_SOURCE_DIR}/Frames/HeartFrame.cpp
${CMAKE_SOURCE_DIR}/Frames/HeartFrame.h
${CMAKE_SOURCE_DIR}/Frames/PlasmaFrame.cpp
${CMAKE_SOURCE_DIR}/Frames/PlasmaFrame.h
${CMAKE_SOURCE_DIR}/Frames/StandardFrame.cpp
${CMAKE_SOURCE_DIR}/Frames/StandardFrame.h
${CMAKE_SOURCE_DIR}/Shared/PictureServices/AbstractPictureService.cpp
${CMAKE_SOURCE_DIR}/Shared/PictureServices/AbstractPictureService.h
${CMAKE_SOURCE_DIR}/Shared/PictureServices/FlickrPictureService.cpp
${CMAKE_SOURCE_DIR}/Shared/PictureServices/FlickrPictureService.h
${CMAKE_SOURCE_DIR}/Shared/PictureServices/GoogleImagesPictureService.cpp
${CMAKE_SOURCE_DIR}/Shared/PictureServices/GoogleImagesPictureService.h
${CMAKE_SOURCE_DIR}/Shared/PlugGui/AbstractAppliance.cpp
${CMAKE_SOURCE_DIR}/Shared/PlugGui/AbstractAppliance.h
${CMAKE_SOURCE_DIR}/Shared/PlugGui/Container.cpp
${CMAKE_SOURCE_DIR}/Shared/PlugGui/Container.h
${CMAKE_SOURCE_DIR}/Shared/PlugGui/Stacker.cpp
${CMAKE_SOURCE_DIR}/Shared/PlugGui/Stacker.h
${CMAKE_SOURCE_DIR}/Shared/AbstractDisposeable.cpp
${CMAKE_SOURCE_DIR}/Shared/AbstractDisposeable.h
${CMAKE_SOURCE_DIR}/Shared/AbstractResourceProvider.h
${CMAKE_SOURCE_DIR}/Shared/AbstractScene.cpp
${CMAKE_SOURCE_DIR}/Shared/AbstractScene.h
${CMAKE_SOURCE_DIR}/Shared/BlinkingToolButton.cpp
${CMAKE_SOURCE_DIR}/Shared/BlinkingToolButton.h
${CMAKE_SOURCE_DIR}/Shared/BreadCrumbBar.cpp
${CMAKE_SOURCE_DIR}/Shared/BreadCrumbBar.h
# ${CMAKE_SOURCE_DIR}/Shared/BrowserItem.cpp
# ${CMAKE_SOURCE_DIR}/Shared/BrowserItem.h
${CMAKE_SOURCE_DIR}/Shared/ButtonsDialog.cpp
${CMAKE_SOURCE_DIR}/Shared/ButtonsDialog.h
${CMAKE_SOURCE_DIR}/Shared/ColorPickerItem.cpp
${CMAKE_SOURCE_DIR}/Shared/ColorPickerItem.h
${CMAKE_SOURCE_DIR}/Shared/CPixmap.cpp
${CMAKE_SOURCE_DIR}/Shared/CPixmap.h
${CMAKE_SOURCE_DIR}/Shared/CroppingDialog.cpp
${CMAKE_SOURCE_DIR}/Shared/CroppingDialog.h
${CMAKE_SOURCE_DIR}/Shared/CroppingWidget.cpp
${CMAKE_SOURCE_DIR}/Shared/CroppingWidget.h
${CMAKE_SOURCE_DIR}/Shared/GlowEffectDialog.cpp
${CMAKE_SOURCE_DIR}/Shared/GlowEffectDialog.h
${CMAKE_SOURCE_DIR}/Shared/GlowEffectWidget.cpp
${CMAKE_SOURCE_DIR}/Shared/GlowEffectWidget.h
${CMAKE_SOURCE_DIR}/Shared/GroupBoxWidget.cpp
${CMAKE_SOURCE_DIR}/Shared/GroupBoxWidget.h
${CMAKE_SOURCE_DIR}/Shared/HighlightItem.cpp
${CMAKE_SOURCE_DIR}/Shared/HighlightItem.h
${CMAKE_SOURCE_DIR}/Shared/MetaXmlReader.cpp
${CMAKE_SOURCE_DIR}/Shared/MetaXmlReader.h
${CMAKE_SOURCE_DIR}/Shared/PanePropertyEditor.cpp
${CMAKE_SOURCE_DIR}/Shared/PanePropertyEditor.h
${CMAKE_SOURCE_DIR}/Shared/PictureEffect.h
${CMAKE_SOURCE_DIR}/Shared/PixmapButton.cpp
${CMAKE_SOURCE_DIR}/Shared/PixmapButton.h
${CMAKE_SOURCE_DIR}/Shared/PropertyEditors.cpp
${CMAKE_SOURCE_DIR}/Shared/PropertyEditors.h
${CMAKE_SOURCE_DIR}/Shared/RenderOpts.h
${CMAKE_SOURCE_DIR}/Shared/VideoProvider.cpp
${CMAKE_SOURCE_DIR}/Shared/VideoProvider.h
${CMAKE_SOURCE_DIR}/Wordcloud/Bits.h
${CMAKE_SOURCE_DIR}/Wordcloud/Cloud.cpp
${CMAKE_SOURCE_DIR}/Wordcloud/Cloud.h
${CMAKE_SOURCE_DIR}/Wordcloud/Scanner.cpp
${CMAKE_SOURCE_DIR}/Wordcloud/Scanner.h
${CMAKE_SOURCE_DIR}/Wordcloud/WordItem.cpp
${CMAKE_SOURCE_DIR}/Wordcloud/WordItem.h
${CMAKE_SOURCE_DIR}/main.cpp)
add_executable(fotowall ${SOURCE_FILES})
add_compile_definitions(HAS_EXPORTDIALOG)
add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x051200)
target_link_libraries(
fotowall
Qt5::Gui
Qt5::Widgets
Qt5::Xml
Qt5::Network
Qt5::Svg
Qt5::OpenGL
Qt5::Core
Qt5::WebKit
Qt5::WebKitWidgets
Qt5::PrintSupport
X11)
target_include_directories(fotowall
PRIVATE ${CMAKE_SOURCE_DIR}/3rdparty/posterazor/)
install(
TARGETS fotowall
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
if(NOT WIN32)
install(
FILES fotowall.png
DESTINATION share/pixmaps
RENAME fotowall.png)
install(FILES fotowall.desktop DESTINATION share/applications)
endif()