-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmeson.build
More file actions
38 lines (33 loc) · 811 Bytes
/
meson.build
File metadata and controls
38 lines (33 loc) · 811 Bytes
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(
'OpenFSAM',
'fortran',
license: 'MIT',
license_files: 'LICENSE',
default_options: [
'buildtype=debugoptimized',
'default_library=both',
],
)
install = not (meson.is_subproject() and get_option('default_library') == 'static')
# Grab OpenFSAM Sources
srcs = []
subdir('src')
# Build/Install OpenFSAM
openfsam_lib = library(
meson.project_name(),
sources: srcs,
install: install,
)
pkg = import('pkgconfig')
pkg.generate(
openfsam_lib,
description: 'An open source Fortran based simulated annealing utility',
)
# Export OpenFSAM as a Dependency for Other Projects (and Examples)
openfsam_inc = openfsam_lib.private_dir_include()
openfsam_dep = declare_dependency(
link_with: openfsam_lib,
include_directories: openfsam_inc,
)
# Build the Examples
subdir('examples')