@@ -1,36 +1,37 | |||||
1 | project('SciQLOP', 'cpp',default_options : ['cpp_std=c++14']) |
|
1 | project('SciQLOP', 'cpp',default_options : ['cpp_std=c++14']) | |
2 |
|
2 | |||
3 | qt5 = import('qt5') |
|
3 | qt5 = import('qt5') | |
4 | qt5core = dependency('qt5', modules : 'Core') |
|
4 | qt5core = dependency('qt5', modules : 'Core') | |
5 | qt5widgets = dependency('qt5', modules : 'Widgets') |
|
5 | qt5widgets = dependency('qt5', modules : 'Widgets') | |
6 | qt5gui = dependency('qt5', modules : 'Gui') |
|
6 | qt5gui = dependency('qt5', modules : 'Gui') | |
7 | qt5svg = dependency('qt5', modules : 'Svg') |
|
7 | qt5svg = dependency('qt5', modules : 'Svg') | |
8 | qt5xml = dependency('qt5', modules : 'Xml') |
|
8 | qt5xml = dependency('qt5', modules : 'Xml') | |
9 | qt5network = dependency('qt5', modules : 'Network') |
|
9 | qt5network = dependency('qt5', modules : 'Network') | |
10 | qt5printsupport = dependency('qt5', modules : 'PrintSupport') |
|
10 | qt5printsupport = dependency('qt5', modules : 'PrintSupport') | |
11 | qt5test = dependency('qt5', modules : 'Test') |
|
11 | qt5test = dependency('qt5', modules : 'Test') | |
12 |
|
12 | |||
13 | moc = find_program('moc-qt5','moc') |
|
13 | moc = find_program('moc-qt5','moc') | |
14 | rcc = find_program('rcc-qt5','rcc') |
|
14 | rcc = find_program('rcc-qt5','rcc') | |
15 |
|
15 | |||
16 | subdir('core') |
|
|||
17 | subdir('gui') |
|
|||
18 | subdir('app') |
|
|||
19 | subdir('plugins') |
|
|||
20 |
|
||||
21 | if build_machine.system()=='darwin' |
|
16 | if build_machine.system()=='darwin' | |
|
17 | add_global_link_arguments('-headerpad_max_install_names', language : 'cpp') | |||
22 | install_data('build_cfg/mac/sciqlopLOGO.icns', install_dir : 'Contents/Resources') |
|
18 | install_data('build_cfg/mac/sciqlopLOGO.icns', install_dir : 'Contents/Resources') | |
23 | install_data('build_cfg/mac/Info.plist', install_dir : 'Contents') |
|
19 | install_data('build_cfg/mac/Info.plist', install_dir : 'Contents') | |
24 | meson.add_install_script('build_cfg/mac/install_script.sh') |
|
20 | meson.add_install_script('build_cfg/mac/install_script.sh') | |
25 | elif host_machine.system()=='windows' |
|
21 | elif host_machine.system()=='windows' | |
26 | meson.add_install_script('build_cfg/windows/install_script.sh') |
|
22 | meson.add_install_script('build_cfg/windows/install_script.sh') | |
27 | endif |
|
23 | endif | |
28 |
|
24 | |||
|
25 | subdir('core') | |||
|
26 | subdir('gui') | |||
|
27 | subdir('app') | |||
|
28 | subdir('plugins') | |||
|
29 | ||||
29 | cppcheck = find_program('cppcheck', required : false) |
|
30 | cppcheck = find_program('cppcheck', required : false) | |
30 |
|
31 | |||
31 | if cppcheck.found() |
|
32 | if cppcheck.found() | |
32 | run_target('cppcheck', |
|
33 | run_target('cppcheck', | |
33 | command : [cppcheck, '--enable=all', |
|
34 | command : [cppcheck, '--enable=all', | |
34 | '--project=' + join_paths(meson.build_root(), 'compile_commands.json')] |
|
35 | '--project=' + join_paths(meson.build_root(), 'compile_commands.json')] | |
35 | ) |
|
36 | ) | |
36 | endif |
|
37 | endif |
General Comments 0
You need to be logged in to leave comments.
Login now