summaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 4a0f492..c32cfc6 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,6 +1,8 @@
python = find_program('python3', native: true)
+# yasl/vulkan.h includes <vulkan/vulkan.h>, so the header path must come with the library.
shared_dep = declare_dependency(link_with: yasl_lib.get_shared_lib(),
- include_directories: include_directories('../include'))
+ include_directories: include_directories('../include'),
+ dependencies: has_vulkan ? [vulkan_dep] : [])
foreach kind : ['static', 'shared']
dep = kind == 'static' ? yasl_dep : shared_dep
public_test = executable('yasl-' + kind + '-api-test', 'test_lifecycle.c', dependencies: dep)