project('defocus-modules', 'c', default_options: ['c_std=c11']) incdir = include_directories('include', '3p') cc = meson.get_compiler('c') m_dep = cc.find_library('m', required: false) add_project_arguments([ '-msse3', '-Wno-missing-braces' ], language: 'c') lib = library('df', 'lib/log.c', 'lib/math.c', 'lib/camera.c', 'lib/pinhole.c', 'lib/image.c', 'lib/color.c', 'lib/thin_lense.c', include_directories: incdir, dependencies: m_dep, version: '0.1.0', soversion: '0') # Command Line Executable executable('defocus', 'bin/defocus.c', include_directories: incdir, link_with: lib) # Test driver munit_dep = dependency('munit', fallback: ['munit', 'munit_dep']) executable('tests', 'tests/tests.c', include_directories: incdir, link_with: lib, dependencies: munit_dep)