From 831c82fbbd29b3f689f2914de8466d3b5f5330e6 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Sat, 26 Oct 2019 22:49:42 +0200 Subject: Add example application main file Signed-off-by: Jacopo Mondi --- meson.build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 042048b..573b30c 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,7 @@ project('elce-cam', 'c', 'cpp', default_options : [ 'werror=true', + '-Wno-unused-parameter=true', 'warning_level=2', 'cpp_std=c++11', ]) @@ -9,8 +10,10 @@ cc = meson.get_compiler('c') config_h = configuration_data() # elce-cam source files +# elce-cam.cpp is the fully commented application +# mini=elce.cpp is for live coding during ELC-E 2019 src_files = files([ - 'main.cpp', + 'elce-cam.cpp', ]) # Point your PKG_CONFIG_PATH environment variable to the @@ -19,6 +22,9 @@ libcamera_deps = [ dependency('camera', required : true), ] +cpp_arguments = '-Wno-unused-parameter' +add_project_arguments(cpp_arguments, language : 'cpp') + # elce-cam executable elce_cam = executable('elce-cam', src_files, dependencies : libcamera_deps, -- cgit v1.2.1