-
Notifications
You must be signed in to change notification settings - Fork 20
/
meson.build
38 lines (29 loc) · 1.38 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
project('h5cpp',['cpp','c'],version:'0.6.1', default_options:'cpp_std=c++17')
h5cpp_dependencies = []
# -----------------------------------------------------------------------------
# check if the with mpi option was set
# -----------------------------------------------------------------------------
if get_option('with-mpi')
h5cpp_dependencies += dependency('mpi-cxx', method: 'pkg-config')
add_project_arguments('-DH5CPP_WITH_MPI', language: 'cpp')
endif
# -----------------------------------------------------------------------------
# setting up the HDF5 dependency
# -----------------------------------------------------------------------------
h5cpp_dependencies += dependency('hdf5', language: 'c')
# -----------------------------------------------------------------------------
# setting up the boost dependencies
# -----------------------------------------------------------------------------
boost_modules = ['system']
if get_option('with-boostfilesystem')
boost_modules += 'filesystem'
add_project_arguments('-DH5CPP_WITH_BOOST', language: 'cpp')
summary()
endif
h5cpp_dependencies += dependency('boost', modules:boost_modules)
srcinc = include_directories('src')
catch2_dep = declare_dependency(include_directories:'subprojects/catch2/include')
subdir('src/h5cpp')
subdir('test')
install_subdir('examples',
install_dir: join_paths(get_option('datadir'),'doc','h5cpp'))