-
Notifications
You must be signed in to change notification settings - Fork 13
/
meson.build
56 lines (49 loc) · 1.23 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
project(
'ntHash',
'cpp',
version: '2.4.0',
license: 'MIT',
default_options: [
'cpp_std=c++17',
'werror=true',
'warning_level=3',
'optimization=3',
],
)
include_dirs = [include_directories('include')]
sources = ['src/kmer.cpp', 'src/seed.cpp']
nthash_lib = static_library(
'nthash',
sources,
include_directories: include_dirs,
install: true,
install_dir: 'lib',
)
lib_dep = declare_dependency(
link_with: nthash_lib,
include_directories: include_dirs,
)
install_headers('include/nthash/nthash.hpp', install_dir: 'include/nthash')
if get_option('buildtype') != 'release'
executable(
'bench',
'examples/benchmark.cpp',
dependencies: [lib_dep],
include_directories: include_dirs,
)
test_exec = executable(
'nthash',
'tests/tests.cpp',
dependencies: [lib_dep],
include_directories: include_dirs,
install: true,
)
test('tests', test_exec)
endif
doxygen = find_program('doxygen', required: false)
if doxygen.found()
message('Doxygen found')
run_target('docs', command: [meson.source_root() + '/update-docs.sh'])
else
warning('Documentation disabled without doxygen')
endif