meson.build 633 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
7
8
9
10
11
12
13
14
    'warning_level=3',
  ]
)

fmt_dep = dependency('fmt', fallback : ['fmt', 'fmt_dep'])
yamlcpp_dep = dependency('yaml-cpp', version : '>=0.6.0', fallback : ['yaml-cpp', 'yamlcpp_dep'])
mpi_dep = dependency('mpi')

# HDF5 is a pain
Lukas Weber's avatar
Lukas Weber committed
15
16
17
18
#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
19

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

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

subdir('src')
25
subdir('test')