CMakeLists.txt

changeset 316
dcd472be9ae8
parent 314
04b93b656b60
child 318
ff02aca2b63c
equal deleted inserted replaced
315:cf4e83cecdb5 316:dcd472be9ae8
134 QT_WRAP_CPP( GEN_MOC_FILES3 ${SRCDIR}/LED.h designer/LEDPlugin.h) 134 QT_WRAP_CPP( GEN_MOC_FILES3 ${SRCDIR}/LED.h designer/LEDPlugin.h)
135 add_library(bmsapp_LED SHARED 135 add_library(bmsapp_LED SHARED
136 ${SRCDIR}/LED.cpp 136 ${SRCDIR}/LED.cpp
137 designer/LEDPlugin.cpp 137 designer/LEDPlugin.cpp
138 ${GEN_MOC_FILES3} 138 ${GEN_MOC_FILES3}
139 )
140
141 QT_WRAP_CPP(GEN_MOC_FILES4
142 ${SRCDIR}/analog/thermometer.h
143 ${SRCDIR}/analog/abstractmeter.h
144 ${SRCDIR}/analog/widgetwithbackground.h
145 designer/thermometer_plugin.h
146 )
147 add_library(bmsapp_thermometer SHARED
148 ${SRCDIR}/analog/thermometer.cpp
149 ${SRCDIR}/analog/abstractmeter.cpp
150 ${SRCDIR}/analog/widgetwithbackground.cpp
151 designer/thermometer_plugin.cpp
152 ${GEN_MOC_FILES4}
153 )
154
155 QT_WRAP_CPP(GEN_MOC_FILES5
156 ${SRCDIR}/analog/manometer.h
157 ${SRCDIR}/analog/abstractmeter.h
158 ${SRCDIR}/analog/widgetwithbackground.h
159 designer/manometer_plugin.h
160 )
161 add_library(bmsapp_manometer SHARED
162 ${SRCDIR}/analog/manometer.cpp
163 ${SRCDIR}/analog/abstractmeter.cpp
164 ${SRCDIR}/analog/widgetwithbackground.cpp
165 designer/manometer_plugin.cpp
166 ${GEN_MOC_FILES5}
167 )
168
169 QT_WRAP_CPP(GEN_MOC_FILES6
170 ${SRCDIR}/analog/wallclock.h
171 ${SRCDIR}/analog/widgetwithbackground.h
172 designer/wallclock_plugin.h
173 )
174 add_library(bmsapp_wallclock SHARED
175 ${SRCDIR}/analog/wallclock.cpp
176 ${SRCDIR}/analog/widgetwithbackground.cpp
177 designer/wallclock_plugin.cpp
178 ${GEN_MOC_FILES6}
179 )
180
181 QT_WRAP_CPP(GEN_MOC_FILES7
182 ${SRCDIR}/analog/led.h
183 ${SRCDIR}/analog/widgetwithbackground.h
184 designer/led_plugin.h
185 )
186 add_library(bmsapp_led SHARED
187 ${SRCDIR}/analog/led.cpp
188 ${SRCDIR}/analog/widgetwithbackground.cpp
189 designer/led_plugin.cpp
190 ${GEN_MOC_FILES7}
139 ) 191 )
140 192
141 ELSE() 193 ELSE()
142 194
143 set( SRCS 195 set( SRCS
187 ${SRCDIR}/database/db_product.cpp 239 ${SRCDIR}/database/db_product.cpp
188 ${SRCDIR}/database/db_recipe.cpp 240 ${SRCDIR}/database/db_recipe.cpp
189 ${SRCDIR}/RangedSlider.cpp 241 ${SRCDIR}/RangedSlider.cpp
190 ${SRCDIR}/NullDateEdit.cpp 242 ${SRCDIR}/NullDateEdit.cpp
191 ${SRCDIR}/LED.cpp 243 ${SRCDIR}/LED.cpp
244 ${SRCDIR}/analog/abstractmeter.cpp
245 ${SRCDIR}/analog/functions.cpp
246 ${SRCDIR}/analog/widgetwithbackground.cpp
247 ${SRCDIR}/analog/manometer.cpp
248 ${SRCDIR}/analog/thermometer.cpp
249 ${SRCDIR}/analog/led.cpp
250 ${SRCDIR}/analog/wallclock.cpp
192 ${SRCDIR}/global.cpp 251 ${SRCDIR}/global.cpp
193 ) 252 )
194 253
195 set( HDRS 254 set( HDRS
196 ${SRCDIR}/RecipesTree.h 255 ${SRCDIR}/RecipesTree.h
238 ${SRCDIR}/database/db_product.h 297 ${SRCDIR}/database/db_product.h
239 ${SRCDIR}/database/db_recipe.h 298 ${SRCDIR}/database/db_recipe.h
240 ${SRCDIR}/RangedSlider.h 299 ${SRCDIR}/RangedSlider.h
241 ${SRCDIR}/NullDateEdit.h 300 ${SRCDIR}/NullDateEdit.h
242 ${SRCDIR}/LED.h 301 ${SRCDIR}/LED.h
302 ${SRCDIR}/analog/abstractmeter.h
303 ${SRCDIR}/analog/functions.h
304 ${SRCDIR}/analog/widgetwithbackground.h
305 ${SRCDIR}/analog/manometer.h
306 ${SRCDIR}/analog/thermometer.h
307 ${SRCDIR}/analog/led.h
308 ${SRCDIR}/analog/wallclock.h
243 ${SRCDIR}/global.h 309 ${SRCDIR}/global.h
244 ) 310 )
245 311
246 set( UIS 312 set( UIS
247 ${UIDIR}/AboutDialog.ui 313 ${UIDIR}/AboutDialog.ui
308 374
309 # ===== Install the application ===== 375 # ===== Install the application =====
310 376
311 IF( ${BUILD_DESIGNER_PLUGINS} ) 377 IF( ${BUILD_DESIGNER_PLUGINS} )
312 378
313 INSTALL(TARGETS bmsapp_rangeslider bmsapp_nulldate bmsapp_LED 379 INSTALL(TARGETS
314 DESTINATION "${LIBPATH}/plugins/designer" 380 bmsapp_rangeslider
381 bmsapp_nulldate
382 bmsapp_LED
383 bmsapp_thermometer
384 bmsapp_manometer
385 bmsapp_led
386 bmsapp_wallclock
387 DESTINATION "${LIBPATH}/plugins/designer"
315 ) 388 )
316 389
317 ELSE() 390 ELSE()
318 391
319 install(TARGETS ${bmsapp_EXECUTABLE} 392 install(TARGETS ${bmsapp_EXECUTABLE}

mercurial