1 diff --git a/meson.build b/meson.build
2 index b25f9ef..7975f85 100644
5 @@ -40,8 +40,8 @@ if dataroot_dir == ''
9 -installed_tests_dir = prefix / libexecdir / 'installed-tests' / meson.project_name()
10 -installed_tests_data_dir = prefix / datadir / 'installed-tests' / meson.project_name()
11 +installed_tests_dir = get_option('installed_test_prefix') / 'libexec' / 'installed-tests' / meson.project_name()
12 +installed_tests_data_dir = get_option('installed_test_prefix') / 'share' / 'installed-tests' / meson.project_name()
13 docs_dir = datadir / 'doc' / meson.project_name()
16 diff --git a/meson_options.txt b/meson_options.txt
17 index fccada3..ca87600 100644
18 --- a/meson_options.txt
19 +++ b/meson_options.txt
20 @@ -38,6 +38,10 @@ option('installed-tests',
23 description: 'Enable installation of some test cases')
24 +option('installed_test_prefix',
27 + description: 'Prefix for installed tests')