1if not get_option('wcap-decode') 2 subdir_done() 3endif 4 5srcs_wcap = [ 6 'main.c', 7 'wcap-decode.c', 8] 9 10wcap_dep_cairo = dependency('cairo', required: false) 11if not wcap_dep_cairo.found() 12 error('wcap requires cairo which was not found. Or, you can use \'-Dwcap-decode=false\'.') 13endif 14 15executable( 16 'wcap-decode', 17 srcs_wcap, 18 include_directories: common_inc, 19 dependencies: [ dep_libm, wcap_dep_cairo ], 20 install: true 21) 22