Skip to content
meson.build 645 B
Newer Older
Mark Meredith's avatar
Mark Meredith committed
project('mfix-parser', 'cpp',
        version : '0.1',
        default_options : ['warning_level=3', 'cpp_std=c++2a'])
run_command('conan', 'install', '--install-folder', meson.build_root(), meson.source_root(), check: true)

pegtl = dependency('pegtl', method: 'pkg-config')
catch2 = dependency('catch2', method: 'pkg-config')
cgal = dependency('cgal', method: 'pkg-config')

Mark Meredith's avatar
Mark Meredith committed
parser_inc = include_directories(
  'src/csg',
  'src/csg/impl',
  'src/inputs')
Mark Meredith's avatar
Mark Meredith committed
subdir('src/csg')
subdir('src/inputs')

executable(
  'mfix-parser',
  'src/main.cpp',
  include_directories: parser_inc,
  link_with: [
    lib_csg_parser,
    lib_inputs_parser,
  ])