momo_src = ['momo.c'] momo_deps = [] momo_args = [] libm = compiler.find_library('m', required: false) if libm.found() momo_deps += [libm] endif linmath_h = subproject('linmath.h').get_variable('linmath_h') momo_deps += [linmath_h] momo = declare_dependency(sources: momo_src, dependencies: momo_deps, compile_args: momo_args)