summaryrefslogtreecommitdiff
path: root/src/lc-compliance/meson.build
diff options
context:
space:
mode:
authorNícolas F. R. A. Prado <nfraprado@collabora.com>2021-07-02 09:21:13 -0300
committerJacopo Mondi <jacopo@jmondi.org>2021-07-06 12:40:58 +0200
commitbc871637797ef0fa193a3c64b82389fff4ce3f44 (patch)
treeda350c19961108329d327e794abb437d7eae9527 /src/lc-compliance/meson.build
parente5c51e1fcf8cf5de6d5bce1da7a2b3d95019f06e (diff)
lc-compliance: Refactor using Googletest
Refactor lc-compliance using Googletest as the test framework. Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/lc-compliance/meson.build')
-rw-r--r--src/lc-compliance/meson.build8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lc-compliance/meson.build b/src/lc-compliance/meson.build
index 3e7bdb03..aa5852f6 100644
--- a/src/lc-compliance/meson.build
+++ b/src/lc-compliance/meson.build
@@ -1,8 +1,9 @@
# SPDX-License-Identifier: CC0-1.0
libevent = dependency('libevent_pthreads', required : get_option('lc-compliance'))
+libgtest = dependency('gtest', required : get_option('lc-compliance'))
-if not libevent.found()
+if not (libevent.found() and libgtest.found())
lc_compliance_enabled = false
subdir_done()
endif
@@ -14,15 +15,16 @@ lc_compliance_sources = files([
'../cam/options.cpp',
'environment.cpp',
'main.cpp',
- 'results.cpp',
'simple_capture.cpp',
- 'single_stream.cpp',
+ 'capture_test.cpp',
])
lc_compliance = executable('lc-compliance', lc_compliance_sources,
+ cpp_args : [ '-fexceptions' ],
dependencies : [
libatomic,
libcamera_public,
libevent,
+ libgtest,
],
install : true)