-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
29 lines (20 loc) · 955 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
project('ibdools', 'cpp',
version : run_command('git', 'describe', '--tag', check: false).stdout().strip(),
default_options : ['c_std=c11', 'cpp_std=c++17'])
git_version_h = vcs_tag(command : ['git', 'describe', '--tags'],
input : 'git_version.txt',
output :'git_version.h',
replace_string:'@GIT_VERSION@')
my_inc = include_directories('./include')
my_dep = declare_dependency(include_directories: my_inc)
cxxopts_inc = include_directories('./src/cxxopts/include')
cxxopts_dep = declare_dependency(include_directories: cxxopts_inc)
fmt_dep = dependency('fmt')
htslib_dep = dependency('htslib')
# ibdtools
ibdtools_dep = [my_dep, cxxopts_dep, fmt_dep, htslib_dep]
executable('ibdtools', git_version_h, 'src/ibdtools.cpp', dependencies: ibdtools_dep)
# tests
gtest_dep = dependency('gtest')
tests_dep = [gtest_dep, my_dep, fmt_dep, htslib_dep]
executable('tests', 'src/gtest.cpp', dependencies: tests_dep)