-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
30 lines (24 loc) · 1.01 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
project('amnatate', 'cpp',
version : '0.0.1',
license : 'GPL-3',
default_options : [ 'cpp_std=c++20', 'warning_level=3', 'werror=true'])
threads_dep = dependency('threads')
openmp_dep = dependency('openmp')
compiler = meson.get_compiler('cpp')
tcmalloc_dep = compiler.find_library('tcmalloc')
divsufsort_dep = compiler.find_library('divsufsort')
divsufsort64_dep = compiler.find_library('divsufsort64')
sdsl_dep = compiler.find_library('sdsl')
sequence_dep = compiler.find_library('sequence')
z_dep = compiler.find_library('z')
btllib_dep = compiler.find_library('btllib')
rootpath = meson.source_root()
src_files = [ 'amnatate.cpp' ]
deps = [ btllib_dep, threads_dep, openmp_dep, tcmalloc_dep, divsufsort_dep, divsufsort64_dep, sdsl_dep, sequence_dep, z_dep ]
link_args = [ '-ltcmalloc', '-lsdsl', '-ldivsufsort', '-ldivsufsort64', '-lbtllib', '-lsequence', '-lz' ]
executable('amnatate',
src_files,
dependencies : deps,
link_args : link_args,
install : true
)