project('iot-contact') cp = find_program('cp', required : true) fs = import('fs') fs.copyfile(meson.current_source_dir() / 'simple.css' / 'simple.css') subdir('tools') subdir('fw') subdir('pcb') subdir('web') artifacts = [ index_html, schematic, bom, simulation, update_image, factory_image, kicad_pcb, ] foreach artifact : artifacts custom_target( output: [fs.name(artifact.full_path())], command: [ cp, artifact.full_path(), meson.current_build_dir(), ], depends: artifact, build_by_default: true, ) endforeach