Utoljára aktív 1 month ago

meson.build Eredeti
1project('dfm-proj', 'cpp', version: '0.1', default_options: ['cpp_std=c++17'])
2user_path=get_option('eigen_path')
3if user_path != ''
4 message('Using custom Eigen path: ' + user_path)
5 eigen_dep = declare_dependency(include_directories : include_directories(user_path))
6else
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
13endif
14
15
16executable('dfm',
17 'main.cpp',
18 dependencies : eigen_dep)
meson_options.txt Eredeti
1option(
2 'eigen_path',
3 type: 'string',
4 value: '',
5 description: 'Absolute path of Eigen'
6)