restc_cpp_dep = dependency('restc-cpp', version: '>=0.1.1', fallback: ['restc-cpp', 'restc_cpp_dep'], default_options: [ 'restc_cpp_with_unit_tests=false', ], ) base_url = get_option('base_url').strip() if not base_url.endswith('/') base_url = base_url + '/' endif conf = configuration_data() conf.set('BASE_URL', base_url) project_config_file = configure_file( input: 'config.hpp.in', output: meson.project_name() + '_config.hpp', configuration: conf, ) executable(meson.project_name(), 'main.cpp', 'oro/datatypes.cpp', 'oro/api.cpp', 'oro/dateconv.cpp', 'oro/items.cpp', 'oro/shops.cpp', project_config_file, install: true, dependencies: [restc_cpp_dep], include_directories: date_incdir, )