tests/4 qt: Don't search for QtWidgets with Qt4

Doesn't exist on qt4, and causes the test case to not run at all.
pull/1042/head
Nirbheek Chauhan 8 years ago
parent 69aafd141e
commit 954038b7c1
  1. 7
      test cases/frameworks/4 qt/meson.build

@ -1,7 +1,12 @@
project('qt4 and 5 build test', 'cpp')
qt5_modules = ['Widgets']
foreach qt : ['qt4', 'qt5']
qtdep = dependency(qt, modules : ['Core', 'Gui', 'Widgets'], required : qt == 'qt5')
qt_modules = ['Core', 'Gui']
if qt == 'qt5'
qt_modules += qt5_modules
endif
qtdep = dependency(qt, modules : qt_modules, required : qt == 'qt5')
if qtdep.found()
qtmodule = import(qt)

Loading…
Cancel
Save