aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration
diff options
context:
space:
mode:
Diffstat (limited to 'lib/configuration')
-rw-r--r--lib/configuration/meson.build10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/configuration/meson.build b/lib/configuration/meson.build
index ea78f8d..b166d5e 100644
--- a/lib/configuration/meson.build
+++ b/lib/configuration/meson.build
@@ -1,11 +1,15 @@
configuration_inc = include_directories('.')
-configuration_lib = static_library('configuration', ['configuration.cpp', 'configuration.h'],
+configuration_moc = qt5.preprocess(
+ moc_headers: ['configuration.h'],
+ dependencies: dep_qt5
+)
+
+configuration_lib = static_library('configuration', ['configuration.cpp', configuration_moc],
dependencies: [dep_boost, dep_qt5],
include_directories: genheader_inc
)
dep_configuration = declare_dependency(
include_directories: configuration_inc,
- link_with: configuration_lib,
- sources: ['configuration.cpp', 'configuration.h']
+ link_with: configuration_lib
)