-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
41 lines (34 loc) · 872 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
36
37
38
39
40
41
project(
'cmp_spfunc', 'cpp',
version : '1.0.0',
default_options : ['cpp_std=c++14', 'warning_level=1'],
license : 'MIT'
)
cxx = meson.get_compiler('cpp')
if cxx.get_id() == 'clang'
extra_args = ['-fclang-flag']
else
extra_args = []
endif
glib_dep = [dependency('gsl')]
cmpx_bes = cxx.find_library('complex_bessel', required: true)
inc = include_directories(
['cmpfunc_cpp/include']
)
subdir('cmpfunc_cpp/include')
subdir('cmpfunc_cpp/src')
# create executable for main
higgsexen = executable(
'test_spfunc', './examples/test_spfunc.cpp',
include_directories : inc,
dependencies : [glib_dep, cmpx_bes],
link_with : spfunclib,
c_args : extra_args
)
pkg_mod = import('pkgconfig')
pkg_mod.generate(
libraries : spfunclib,
version : '1.0.0',
name : 'cmp_spfunc',
description : 'A library for special functions with complex arguments.'
)