meson.build
· 617 B · Meson
Brut
project('dfm-proj', 'cpp', version: '0.1', default_options: ['cpp_std=c++17'])
user_path=get_option('eigen_path')
if user_path != ''
message('Using custom Eigen path: ' + user_path)
eigen_dep = declare_dependency(include_directories : include_directories(user_path))
else
message('No custom path provided, searching in system...')
eigen_dep = dependency('eigen5', required : false)
if not eigen_dep.found()
error('Eigen not found! Please specify path with: -Deigen_path=/path/to/eigen')
endif
endif
executable('dfm',
'main.cpp',
dependencies : eigen_dep)
| 1 | project('dfm-proj', 'cpp', version: '0.1', default_options: ['cpp_std=c++17']) |
| 2 | user_path=get_option('eigen_path') |
| 3 | if user_path != '' |
| 4 | message('Using custom Eigen path: ' + user_path) |
| 5 | eigen_dep = declare_dependency(include_directories : include_directories(user_path)) |
| 6 | else |
| 7 | message('No custom path provided, searching in system...') |
| 8 | eigen_dep = dependency('eigen5', required : false) |
| 9 | |
| 10 | if not eigen_dep.found() |
| 11 | error('Eigen not found! Please specify path with: -Deigen_path=/path/to/eigen') |
| 12 | endif |
| 13 | endif |
| 14 | |
| 15 | |
| 16 | executable('dfm', |
| 17 | 'main.cpp', |
| 18 | dependencies : eigen_dep) |
meson_options.txt
· 104 B · Meson
Brut
option(
'eigen_path',
type: 'string',
value: '',
description: 'Absolute path of Eigen'
)
| 1 | option( |
| 2 | 'eigen_path', |
| 3 | type: 'string', |
| 4 | value: '', |
| 5 | description: 'Absolute path of Eigen' |
| 6 | ) |