blob: 64128641e0cd7da61feefef1b46df9a7032496dc [file] [log] [blame]
project('multiple outputs install', 'c')
gen = find_program('generator.py')
custom_target('different-install-dirs',
output : ['diff.h', 'diff.sh'],
command : [gen, 'diff', '@OUTDIR@'],
install : true,
install_dir : [join_paths(get_option('prefix'), get_option('includedir')),
join_paths(get_option('prefix'), get_option('bindir'))])
custom_target('same-install-dir',
output : ['same.h', 'same.sh'],
command : [gen, 'same', '@OUTDIR@'],
install : true,
install_dir : '/opt')
custom_target('only-install-first',
output : ['first.h', 'first.sh'],
command : [gen, 'first', '@OUTDIR@'],
install : true,
install_dir : [join_paths(get_option('prefix'), get_option('includedir')), false])
custom_target('only-install-second',
output : ['second.h', 'second.sh'],
command : [gen, 'second', '@OUTDIR@'],
install : true,
install_dir : [false, join_paths(get_option('prefix'), get_option('bindir'))])