|
1 | 1 | project(
|
2 |
| - 'pandora', |
3 |
| - 'cpp', |
4 |
| - version: run_command( |
5 |
| - 'version.sh', |
6 |
| - 'get-vcs', |
7 |
| - check: true, |
8 |
| - ).stdout().strip(), |
9 |
| - default_options: [ |
10 |
| - 'cpp_std=c++17', |
11 |
| - ], |
12 |
| - meson_version: '>=1.1' |
| 2 | + 'pandora', |
| 3 | + 'cpp', |
| 4 | + version: run_command('version.sh', 'get-vcs', check: true).stdout().strip(), |
| 5 | + default_options: ['cpp_std=c++17'], |
| 6 | + meson_version: '>=1.1', |
13 | 7 | )
|
14 | 8 |
|
15 |
| -meson.add_dist_script( meson.project_source_root() / 'version.sh', 'set-dist', meson.project_version()) |
16 |
| - |
| 9 | +meson.add_dist_script( |
| 10 | + meson.project_source_root() / 'version.sh', |
| 11 | + 'set-dist', |
| 12 | + meson.project_version(), |
| 13 | +) |
17 | 14 |
|
18 | 15 | py = import('python').find_installation(pure: false)
|
19 | 16 |
|
20 | 17 | pybind11_dep = dependency('pybind11')
|
21 | 18 | doctest_dep = dependency('doctest', required: get_option('build_cpp_tests'))
|
22 |
| -python_dep = py.dependency(embed:true, required: get_option('build_cpp_tests')) |
23 |
| - |
| 19 | +python_dep = py.dependency(embed: true, required: get_option('build_cpp_tests')) |
24 | 20 |
|
25 | 21 | install_subdir(
|
26 |
| - 'pandora', |
27 |
| - install_dir: py.get_install_dir() / 'pandora', |
28 |
| - strip_directory: true, |
| 22 | + 'pandora', |
| 23 | + install_dir: py.get_install_dir() / 'pandora', |
| 24 | + strip_directory: true, |
29 | 25 | )
|
30 | 26 |
|
31 |
| -subdir( |
32 |
| - 'pandora/cpp' |
33 |
| -) |
| 27 | +subdir('pandora/cpp') |
34 | 28 |
|
35 |
| -subdir( |
36 |
| - 'pandora/validation/cpp' |
37 |
| -) |
| 29 | +subdir('pandora/validation/cpp') |
38 | 30 |
|
39 |
| -subdir( |
40 |
| - 'pandora/aggregation/cpp' |
41 |
| -) |
| 31 | +subdir('pandora/aggregation/cpp') |
42 | 32 |
|
43 |
| -subdir( |
44 |
| - 'pandora/cost_volume_confidence/cpp' |
45 |
| -) |
| 33 | +subdir('pandora/cost_volume_confidence/cpp') |
46 | 34 |
|
47 |
| -subdir( |
48 |
| - 'pandora/refinement/cpp' |
49 |
| -) |
| 35 | +subdir('pandora/refinement/cpp') |
50 | 36 |
|
51 |
| -subdir( |
52 |
| - 'pandora/matching_cost/cpp' |
53 |
| -) |
| 37 | +subdir('pandora/matching_cost/cpp') |
54 | 38 |
|
55 | 39 | if get_option('build_cpp_tests').enabled()
|
56 |
| - subdir( |
57 |
| - 'tests/test_cpp/' |
58 |
| - ) |
| 40 | + subdir('tests/test_cpp/') |
59 | 41 | endif
|
0 commit comments