aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-23 11:53:50 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-23 11:53:50 +0200
commit547d6a4a8ed5ac2e8d922c0c7cfb294e0a3ceed4 (patch)
treea2aa608a744ba79ee84c495128df1059430f82a6 /lib/configuration
parentInitial meson build files (diff)
downloadsmolbote-547d6a4a8ed5ac2e8d922c0c7cfb294e0a3ceed4.tar.xz
Fix link errors
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
)