-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
51 lines (43 loc) · 1.1 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
project(
'higgsfo', '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')]
cuba_lib = cxx.find_library('cuba', 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(
'higgsfo-pt', 'higgsfodpt.cpp',
include_directories : inc,
dependencies : [glib_dep, yaml_lib],
link_with : higgslib,
c_args : extra_args
)
# create executable for cross section as a function of N
higgsexen = executable(
'higgsfo-n', 'higgsfodptN.cpp',
include_directories : inc,
dependencies : [glib_dep, 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 higgs FO calculations.'
)