From a97f90531826b33cd5b7a2bc6cbef079b8ebaac2 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 1 Nov 2020 20:01:00 +0200 Subject: Initial commit --- meson.build | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 meson.build (limited to 'meson.build') diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..7c3aac3 --- /dev/null +++ b/meson.build @@ -0,0 +1,32 @@ +project('qimv', 'cpp', + version : '0.1', + default_options : ['warning_level=3', 'cpp_std=c++14']) + +summary({ + 'prefix': get_option('prefix'), + 'bindir': get_option('bindir'), + 'libdir': get_option('libdir'), + 'datadir': get_option('datadir') +}, section: 'Install locations') + +cxx = meson.get_compiler('cpp') +summary({ + 'id': cxx.get_id(), + 'version': cxx.version(), + 'linker': cxx.get_linker_id(), +}, section: 'Compiler') + +mod_qt5 = import('qt5') +dep_qt5 = dependency('qt5', modules: [ 'Core', 'Widgets' ], include_type: 'system') + +moc = mod_qt5.preprocess( + moc_headers: [ 'src/mainwindow.h' ], + ui_files: [ 'src/mainwindow.ui' ], + dependencies: dep_qt5 +) + +exe = executable('qimv', + sources: [ 'src/main.cpp', 'src/mainwindow.cpp', moc ], + dependencies: dep_qt5, + install: true) + -- cgit v1.2.1