-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
35 lines (29 loc) · 964 Bytes
/
meson.build
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
33
34
35
# _ _ _ _
# _ __ ___ ___ ___ ___ _ __ | |__ _ _(_) | __| |
# | '_ ` _ \ / _ \/ __|/ _ \| '_ \ | '_ \| | | | | |/ _` |
# | | | | | | __/\__ \ (_) | | | |_| |_) | |_| | | | (_| |
# |_| |_| |_|\___||___/\___/|_| |_(_)_.__/ \__,_|_|_|\__,_|
project('visualizing-sorting', 'cpp')
sources = files(
'src/main.cpp',
'src/frontend/config.cpp',
)
headers = files(
'include/vis/backend/bogo_sorter.hpp',
'include/vis/backend/bubble_sorter.hpp',
'include/vis/backend/quick_sorter.hpp',
'include/vis/backend/sorter.hpp',
'include/vis/frontend/config.hpp',
'include/vis/frontend/sorter.hpp',
)
incdirs = include_directories('include')
executable('visort', sources,
dependencies: dependency('sfml-all'),
include_directories: incdirs,
)
custom_target('format',
build_by_default: true,
command: ['clang-format', '-i', '@INPUT@'],
input: [sources, headers],
output: 'stdout',
)