summaryrefslogtreecommitdiff
path: root/meson.build
blob: 7c3aac33ab859a354f633279ed23aad231e7e204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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)