meson.build 671 Bytes
Newer Older
Lukas Weber's avatar
Lukas Weber committed
1
2
3
4
project('load-leveller', 'c', 'cpp',
  version : '2.0',
  meson_version : '>=0.50.0',
  default_options : [
Lukas Weber's avatar
Lukas Weber committed
5
    'cpp_std=c++17',
Lukas Weber's avatar
Lukas Weber committed
6
    'warning_level=3',
Lukas Weber's avatar
Lukas Weber committed
7
    'cpp_std=c++17'
Lukas Weber's avatar
Lukas Weber committed
8
9
10
11
12
  ]
)

fmt_dep = dependency('fmt', fallback : ['fmt', 'fmt_dep'])
yamlcpp_dep = dependency('yaml-cpp', version : '>=0.6.0', fallback : ['yaml-cpp', 'yamlcpp_dep'])
Lukas Weber's avatar
Lukas Weber committed
13
mpi_dep = dependency('mpi', language : 'cpp')
Lukas Weber's avatar
Lukas Weber committed
14
15

# HDF5 is a pain
Lukas Weber's avatar
Lukas Weber committed
16
17
18
19
#cc = meson.get_compiler('cpp')
#hdf5_lib = cc.find_library('hdf5')

hdf5_dep = dependency('hdf5', fallback : ['hdf5', 'hdf5_dep'])
Lukas Weber's avatar
Lukas Weber committed
20

Lukas Weber's avatar
Lukas Weber committed
21
should_install = not meson.is_subproject()
22

Lukas Weber's avatar
Lukas Weber committed
23
loadleveller_deps = [ fmt_dep, yamlcpp_dep, mpi_dep, hdf5_dep ]
Lukas Weber's avatar
Lukas Weber committed
24
25

subdir('src')
26
subdir('test')