aboutsummaryrefslogtreecommitdiff
path: root/test cases/frameworks/4 qt5/meson.build
blob: 237db33727053064afc75e8d8377e8b729b16355 (plain)
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
project('qt5 build test', 'cpp')

qt5dep = dependency('qt5', modules : 'Widgets')

q5exe = executable('qt5app',
sources : ['main.cpp', 'mainWindow.cpp'], # Sources that don't need preprocessing.
moc_headers : ['mainWindow.h'], # These need to be fed through the moc tool before use. 
ui_files : 'mainWindow.ui', # XML files that need to be compiled with the uic tol.
qresources : 'stuff.qrc', # Resource file for rcc compiler.
deps : qt5dep)

# We need a console test application because some test environments
# do not have an X server.

qt5core = dependency('qt5', modules : 'Core')

qt5coreapp = executable('q5core', 'q5core.cpp',
deps : qt5core)

test('qt5test', qt5coreapp)

# Tests for source file compilation with moc.

q5moc = executable('q5moc',
sources : 'moctest.cpp',
moc_sources : 'mocinclude.cpp',
deps : qt5core)

test('q5moc', q5moc)

q5maninclude = executable('q5maninclude',
sources : 'manualinclude.cpp',
moc_headers : 'manualinclude.h',
include_moc_files : false,
deps : qt5core)

test('q5maninclude', q5maninclude)