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)