-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
58 lines (52 loc) · 1.5 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
52
53
54
55
56
57
58
# This file is part of dftd4.
# SPDX-Identifier: LGPL-3.0-or-later
#
# dftd4 is free software: you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# dftd4 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# Lesser GNU General Public License for more details.
#
# You should have received a copy of the Lesser GNU General Public License
# along with dftd4. If not, see <https://www.gnu.org/licenses/>.
project(
'dftd4-fit',
'fortran',
version: '0.2.1',
license: 'LGPL-3.0-or-later',
meson_version: '>=0.55',
default_options: [
'buildtype=debugoptimized',
'default_library=both',
],
)
# General configuration information
inc_dirs = []
exe_deps = []
subdir('config')
# Add applications
subdir('app')
# Package the license files
dftd4_lic = files(
'COPYING',
'COPYING.LESSER',
)
# Distribute the license files in share/licenses/<name>
install_data(
dftd4_lic,
install_dir: get_option('datadir')/'licenses'/meson.project_name()
)
asciidoc = find_program('asciidoctor', required: false)
if asciidoc.found()
install_man(
configure_file(
command: [asciidoc, '-b', 'manpage', '@INPUT@', '-o', '@OUTPUT@'],
input: files('man/dftd4-fit.1.adoc'),
output: '@BASENAME@',
)
)
endif