-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
57 lines (49 loc) · 1.29 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
57
project(
'higgs-n3lo', '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('lhapdf'),
dependency('gsl'),
dependency('boost')
]
higgsfo_lib = cxx.find_library('higgsfo', required : true)
cuba_lib = cxx.find_library('cuba', required : true)
cmpx_bessel = cxx.find_library('complex_bessel', required : true)
yaml_lib = cxx.find_library('yaml-cpp', required : true)
inc = include_directories(
['include']
)
subdir('include')
subdir('src')
# create executable for cross section as a function of pt
higgsexep = executable(
'higgs-pt', 'dSigmadpt.cpp',
include_directories : inc,
dependencies : [glib_dep, higgsfo_lib, yaml_lib],
link_with : higgslib,
c_args : extra_args
)
# create executable for cross section as a function of N
higgsexen = executable(
'higgs-n', 'dSigmadptN.cpp',
include_directories : inc,
dependencies : [glib_dep, higgsfo_lib, yaml_lib],
link_with : higgslib,
c_args : extra_args
)
pkg_mod = import('pkgconfig')
pkg_mod.generate(
libraries : higgslib,
version : '1.0.0',
name : 'higgsfo',
description : 'A library for NNLO higgs pt-distributions.'
)