-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathmeson.build
45 lines (32 loc) · 1.26 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
# The meson build system for the geotop project
# Author: Alberto Sartori ([email protected]) 2018
project('geotop','cpp',
default_options : ['cpp_std=c++11',
'buildtype=release',
'warning_level=3' ],
version: '3.0')
# the following lists will be populated through the inclusion of the
# meson.build int the subfolders
# include_dirs : all the folders with the header files
# src_files : all the files needed to compile geotop
# deps : all the external dependencies required (e.g., boost, meteoio)
# we initialize them as empty lists
include_dirs = []
src_files = []
deps = []
# rpaths : all the runpaths, it must be a string
rpaths = '/usr/local/lib:/usr/lib:/usr/lib64:/usr/local/lib64'
# find all the source files, main, and include directories
subdir('src')
# find dependencise, set flags specific for the used compiler,
# generate config.h and version.h files
# set up the 'install' target
subdir('meson')
main = files('src/geotop/geotop.cc')
geotop = executable('geotop', main, src_files, tag,
include_directories: include_dirs,
dependencies: deps,
install:true,
install_rpath: rpaths)
# set up tests
subdir('tests')