summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build20
1 files changed, 16 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index c3b6302..b0708c2 100644
--- a/meson.build
+++ b/meson.build
@@ -199,16 +199,27 @@ test('csv', executable(
],
))
-test('line', executable(
- 'test_line',
+io_test_helper_lib = library(
+ 'io_test_helper',
sources: [
- 'test/line.cc',
- 'test/io_test_helper.hh',
'test/io_test_helper.cc',
+ 'test/io_test_helper.hh',
],
include_directories: inc,
+ dependencies: io_dep,
+)
+io_test_helper_dep = declare_dependency(
+ link_with: io_test_helper_lib,
+ dependencies: io_dep,
+)
+
+test('line', executable(
+ 'test_line',
+ sources: ['test/line.cc'],
+ include_directories: inc,
dependencies: [
io_dep,
+ io_test_helper_dep,
test_dependencies,
],
))
@@ -229,6 +240,7 @@ test('io', executable(
include_directories: inc,
dependencies: [
io_dep,
+ io_test_helper_dep,
test_dependencies,
],
))