aboutsummaryrefslogtreecommitdiff
path: root/src/about/meson.build
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-04-19 14:22:29 +0300
committerAqua-sama <aqua@iserlohn-fortress.net>2020-04-19 16:51:21 +0300
commiteaa6623d1b82982509b8f5f51a44205a3d5f9b5f (patch)
tree038ecbba485c46ffda18055227009350dc01dc20 /src/about/meson.build
parentAdd args.wrap (diff)
downloadsmolbote-eaa6623d1b82982509b8f5f51a44205a3d5f9b5f.tar.xz
move lib/about to src/about
- add AboutDialog test - add SVG icon in place of application icon
Diffstat (limited to 'src/about/meson.build')
-rw-r--r--src/about/meson.build21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/about/meson.build b/src/about/meson.build
new file mode 100644
index 0000000..49274a8
--- /dev/null
+++ b/src/about/meson.build
@@ -0,0 +1,21 @@
+about_moc = mod_qt5.preprocess(
+ moc_headers: ['aboutdialog.h', 'aboutplugin.h'],
+ ui_files: ['aboutdialog.ui', 'aboutplugin.ui'],
+ dependencies: dep_qt5
+)
+
+dep_about = declare_dependency(
+ include_directories: '.',
+ link_with: static_library('about',
+ [ 'aboutdialog.cpp', 'aboutplugin.cpp', about_moc, version_h],
+ dependencies: [dep_qt5])
+)
+
+poi_sourceset.add(dep_about)
+
+test('about dialog', executable('about',
+ sources: 'test/main.cpp',
+ dependencies: [ dep_qt5, dep_about, dep_catch ]),
+ args: [ '-platform', 'offscreen' ],
+ env: 'autoclose=1'
+)