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

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
12
mpi_dep = dependency('mpi', language : 'cpp')
Lukas Weber's avatar
Lukas Weber committed
13 14 15 16 17

# HDF5 is a pain
cc = meson.get_compiler('cpp')
hdf5_lib = cc.find_library('hdf5')

Lukas Weber's avatar
Lukas Weber committed
18
should_install = not meson.is_subproject()
19

Lukas Weber's avatar
Lukas Weber committed
20 21 22
loadleveller_deps = [ fmt_dep, yamlcpp_dep, mpi_dep, hdf5_lib ]

subdir('src')
23
subdir('test')