]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/contrib/shape/meson.build
Compile shapes demo with meson
[orte.git] / orte / contrib / shape / meson.build
diff --git a/orte/contrib/shape/meson.build b/orte/contrib/shape/meson.build
new file mode 100644 (file)
index 0000000..3e4efc2
--- /dev/null
@@ -0,0 +1,38 @@
+qt4 = import('qt4')
+
+qt_dep = dependency('qt4', modules: ['Core', 'Gui'])
+
+if qt_dep.found()
+
+  preprocessed = qt4.preprocess(
+    moc_headers: [
+    'FPublisher.h',
+    'FSubscriber.h',
+    'MainForm.h',
+    'MyQFrame.h',
+    'richtext.h',
+  ],
+    ui_files: [ 'MainForm.ui', 'FPublisher.ui', 'FSubscriber.ui' ],
+    qresources: 'shapes.qrc',
+  )
+
+  executable(
+    'ortedemo',
+    sources: [
+      'main.cpp',
+      'MainForm.cpp',
+      'MyQFrame.cpp',
+      'richtext.cpp',
+      'FPublisher.cpp',
+      'FSubscriber.cpp',
+      'BoxType.c',
+      preprocessed,
+    ],
+    include_directories: include_directories('../../include'),
+    dependencies: [
+      liborte_dep,
+      qt_dep,
+    ]
+  )
+
+endif