-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
220 lines (207 loc) · 7.64 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
cmake_minimum_required(VERSION 3.2)
project(QtStackedBar3D)
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5OpenGL REQUIRED)
find_package(Qt5DataVisualization REQUIRED)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed
# set(CMAKE_AUTOMOC ON)
# Create code from a list of Qt designer ui files
# set(CMAKE_AUTOUIC ON)
set(QtStackedBar3D_HEADERS include/QAbstractAxis3D.h
include/QAbstractAxis3DPrivate.h
include/QAbstractController3D.h
include/QAbstractController3DPrivate.h
include/QAbstractDataProxy3D.h
include/QAbstractDataProxy3DPrivate.h
include/QAbstractGraph3D.h
include/QAbstractGraph3DPrivate.h
include/QAbstractInputHandler3D.h
include/QAbstractInputHandler3DPrivate.h
include/QAbstractObjectHelper3D.h
include/QAbstractRenderItem3D.h
include/QAbstractRenderer3D.h
include/QAbstractSeries3D.h
include/QAbstractSeries3DPrivate.h
include/QAxisValueFormatter3D.h
include/QAxisValueFormatter3DPrivate.h
include/QAxisRenderCache3D.h
include/QBars3D.h
include/QBars3DPrivate.h
include/QBarsController3D.h
include/QBarDataItem3D.h
include/QBarDataItem3DPrivate.h
include/QBarDataProxy3D.h
include/QBarDataProxy3DPrivate.h
include/QBarsRenderer3D.h
include/QBarRenderItem3D.h
include/QBarSeries3D.h
include/QBarSeries3DPrivate.h
include/QBarSeriesRenderCache3D.h
include/QCamera3D.h
include/QCamera3DPrivate.h
include/QCategoryAxis3D.h
include/QCategoryAxis3DPrivate.h
include/QCustomItem3D.h
include/QCustomItem3DPrivate.h
include/QCustomLabel3D.h
include/QCustomLabel3DPrivate.h
include/QCustomRenderItem3D.h
include/QCustomVolume3D.h
include/QCustomVolume3DPrivate.h
include/QDrawer3D.h
include/QInputHandler3D.h
include/QInputHandler3DPrivate.h
include/QLabelItem3D.h
include/QLight3D.h
include/QLight3DPrivate.h
include/QMeshLoader3D.h
include/QObject3D.h
include/QObject3DPrivate.h
include/QObjectHelper3D.h
include/QScatterController3D.h
include/QScatterDataItem3D.h
include/QScatterDataItem3DPrivate.h
include/QScatterDataProxy3D.h
include/QScatterDataProxy3DPrivate.h
include/QScatterObjectBufferHelper3D.h
include/QScatterPointBufferHelper3D.h
include/QScatterRenderer3D.h
include/QScatterRenderItem3D.h
include/QScatterSeries3D.h
include/QScatterSeries3DPrivate.h
include/QScatterSeriesRenderCache3D.h
include/QScene3D.h
include/QScene3DPrivate.h
include/QSelectionPointer3D.h
include/QSeriesRenderCache3D.h
include/QShaderHelper3D.h
include/QStackedBars3D.h
include/QStackedBars3DPrivate.h
include/QStackedBarsController3D.h
include/QStackedBarDataItem3D.h
include/QStackedBarDataItem3DPrivate.h
include/QStackedBarDataProxy3D.h
include/QStackedBarDataProxy3DPrivate.h
include/QStackedBarRenderItem3D.h
include/QStackedBarRenderer3D.h
include/QStackedBarSeries3D.h
include/QStackedBarSeries3DPrivate.h
include/QStackedBarSeriesRenderCache3D.h
include/QSurfaceController3D.h
include/QSurfaceDataItem3D.h
include/QSurfaceDataItem3DPrivate.h
include/QSurfaceDataProxy3D.h
include/QSurfaceDataProxy3DPrivate.h
include/QSurfaceObject3D.h
include/QSurfaceRenderer3D.h
include/QSurfaceSeries3D.h
include/QSurfaceSeries3DPrivate.h
include/QSurfaceSeriesRenderCache3D.h
include/QTextureHelper3D.h
include/QTheme3D.h
include/QTheme3DPrivate.h
include/QThemeManager3D.h
include/QTouchInputHandler3D.h
include/QTouchInputHandler3DPrivate.h
include/QUtils3D.h
include/QUtilsGeneric.h
include/QValueAxis3D.h
include/QValueAxis3DPrivate.h
include/QVertexIndexer3D.h
include/QVisualizationGlobals3D.h
)
set(QtStackedBar3D_SRCS src/QAbstractAxis3D.cpp
src/QAbstractController3D.cpp
src/QAbstractDataProxy3D.cpp
src/QAbstractGraph3D.cpp
src/QAbstractInputHandler3D.cpp
src/QAbstractObjectHelper3D.cpp
src/QAbstractRenderer3D.cpp
src/QAbstractRenderItem3D.cpp
src/QAbstractSeries3D.cpp
src/QAxisRenderCache3D.cpp
src/QAxisValueFormatter3D.cpp
src/QBars3D.cpp
src/QBarDataItem3D.cpp
src/QBarDataProxy3D.cpp
src/QBarsController3D.cpp
src/QBarsRenderer3D.cpp
src/QBarRenderItem3D.cpp
src/QBarSeries3D.cpp
src/QBarSeriesRenderCache3D.cpp
src/QCamera3D.cpp
src/QCategoryAxis3D.cpp
src/QCustomItem3D.cpp
src/QCustomLabel3D.cpp
src/QCustomRenderItem3D.cpp
src/QCustomVolume3D.cpp
src/QDrawer3D.cpp
src/QInputHandler3D.cpp
src/QLabelItem3D.cpp
src/QLight3D.cpp
src/QMeshLoader3D.cpp
src/QObject3D.cpp
src/QObjectHelper3D.cpp
src/QScatterController3D.cpp
src/QScatterDataItem3D.cpp
src/QScatterDataProxy3D.cpp
src/QScatterObjectBufferHelper3D.cpp
src/QScatterPointBufferHelper3D.cpp
src/QScatterRenderItem3D.cpp
src/QScatterRenderer3D.cpp
src/QScatterSeries3D.cpp
src/QScatterSeriesRenderCache3D.cpp
src/QScene3D.cpp
src/QSelectionPointer3D.cpp
src/QSeriesRenderCache3D.cpp
src/QShaderHelper3D.cpp
src/QStackedBars3D.cpp
src/QStackedBarsController3D.cpp
src/QStackedBarDataItem3D.cpp
src/QStackedBarDataProxy3D.cpp
src/QStackedBarRenderer3D.cpp
src/QStackedBarRenderItem3D.cpp
src/QStackedBarSeries3D.cpp
src/QStackedBarSeriesRenderCache3D.cpp
src/QSurfaceController3D.cpp
src/QSurfaceDataItem3D.cpp
src/QSurfaceDataProxy3D.cpp
src/QSurfaceObject3D.cpp
src/QSurfaceRenderer3D.cpp
src/QSurfaceSeries3D.cpp
src/QSurfaceSeriesRenderCache3D.cpp
src/QTextureHelper3D.cpp
src/QTheme3D.cpp
src/QThemeManager3D.cpp
src/QTouchInputHandler3D.cpp
src/QUtils3D.cpp
src/QValueAxis3D.cpp
src/QVertexIndexer3D.cpp
)
set(QtStackedBar3DExe_HEADERS include/GraphModifierBase.h
include/GraphModifier.h
include/GraphModifierStacked.h)
set(QtStackedBar3DExe_SOURCES src/GraphModifierBase.cpp
src/GraphModifier.cpp
src/GraphModifierStacked.cpp
src/main.cpp)
qt5_wrap_cpp(QtStackedBar3D_MOC_SRCS ${QtStackedBar3D_HEADERS})
qt5_add_resources(QtStackedBar3D_RCC_SRC qstackedbars.qrc)
include_directories(${CMAKE_SOURCE_DIR}/include)
add_library(QtStackedBar3D SHARED
${QtStackedBar3D_HEADERS}
${QtStackedBar3D_SRCS}
${QtStackedBar3D_MOC_SRCS}
${QtStackedBar3D_RCC_SRC})
SET_TARGET_PROPERTIES(QtStackedBar3D PROPERTIES
COMPILE_DEFINITIONS "QT_BUILD_STACKEDBAR3D_LIB")
target_link_libraries(QtStackedBar3D Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL Qt5::DataVisualization)
qt5_wrap_cpp(QtStackedBar3DExe_MOC_SRCS ${QtStackedBar3DExe_HEADERS})
add_executable(QtStackedBars3DDemo ${QtStackedBar3DExe_HEADERS}
${QtStackedBar3DExe_SOURCES}
${QtStackedBar3DExe_MOC_SRCS})
target_link_libraries(QtStackedBars3DDemo Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL Qt5::DataVisualization QtStackedBar3D)