1 diff --git a/meson.build b/meson.build
2 index 38486c9..c567613 100644
6 prefix = get_option('prefix')
7 datadir = join_paths(prefix, get_option('datadir'))
8 libexecdir = join_paths(prefix, get_option('libexecdir'))
9 - installed_test_bindir = join_paths(libexecdir, 'installed-tests', meson.project_name())
10 - installed_test_datadir = join_paths(datadir, 'installed-tests', meson.project_name())
11 + installed_test_bindir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests', meson.project_name())
12 + installed_test_datadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', meson.project_name())
15 gio = dependency('gio-2.0', version : '>= 2.45.8')
16 diff --git a/meson_options.txt b/meson_options.txt
17 index 27e8cb6..74548ae 100644
18 --- a/meson_options.txt
19 +++ b/meson_options.txt
21 option('introspection', type : 'boolean', value : true, description : 'generate GObject Introspection data')
22 option('tests', type : 'boolean', value : true, description : 'enable tests')
23 option('stemmer', type : 'boolean', value : false, description : 'enable stemmer support')
24 +option('installed_test_prefix', type: 'string', value: '', description: 'Prefix for installed tests')