1 diff --git a/meson.build b/meson.build
2 index f69968d..d1d6c6e 100644
5 @@ -114,8 +114,8 @@ else
6 datadir = join_paths(prefix, get_option('datadir'))
7 localstatedir = join_paths(prefix, get_option('localstatedir'))
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())
14 mandir = join_paths(prefix, get_option('mandir'))
15 localedir = join_paths(prefix, get_option('localedir'))
16 diff --git a/meson_options.txt b/meson_options.txt
17 index 4784300..d382fc1 100644
18 --- a/meson_options.txt
19 +++ b/meson_options.txt
21 +option('installed_test_prefix', type: 'string', value: '', description: 'Prefix for installed tests')
22 option('gtkdoc', type : 'boolean', value : false, description : 'enable developer documentation')
23 option('introspection', type : 'boolean', value : true, description : 'generate GObject Introspection data')
24 option('tests', type : 'boolean', value : true, description : 'enable tests')