summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2019-09-11 13:00:54 +0200
committerThomas Haller <thaller@redhat.com>2019-10-01 09:49:33 +0200
commit700f6f6b5fd5dd9975200cb22a9251e811963d47 (patch)
treef077a9b215501e27bf7f84ecf8c629a0ae5652bb /examples
parentda40a6597fb37bd49bb1c7b01954de199ffed740 (diff)
downloadNetworkManager-700f6f6b5fd5dd9975200cb22a9251e811963d47.tar.gz
meson: Improve Qt examples
Qt dependencies have been moved to the main build file where the rest of dependencies are located. This makes it easier to find them. The included directories has also reviewed and removed the unnecessary ones.
Diffstat (limited to 'examples')
-rw-r--r--examples/C/qt/meson.build13
1 files changed, 3 insertions, 10 deletions
diff --git a/examples/C/qt/meson.build b/examples/C/qt/meson.build
index c3487af4a0..172502a210 100644
--- a/examples/C/qt/meson.build
+++ b/examples/C/qt/meson.build
@@ -4,18 +4,11 @@ examples = [
['change-ipv4-addresses', []],
]
-incs = [
- top_inc,
- libnm_core_inc,
-]
-
-qt_core_dep = dependency('QtCore', version: '>= 4')
-
deps = [
dbus_dep,
qt_core_dep,
- dependency('QtDBus'),
- dependency('QtNetwork'),
+ qt_dbus_dep,
+ qt_network_dep,
]
moc = find_program('moc-qt4', required: false)
@@ -39,7 +32,7 @@ foreach example: examples
executable(
example[0],
example[0] + '.cpp',
- include_directories: incs,
+ include_directories: libnm_core_inc,
dependencies: deps,
link_depends: example[1],
)