diff options
-rw-r--r-- | tests/tegra/.gitignore | 2 | ||||
-rw-r--r-- | tests/tegra/Makefile.am | 9 | ||||
-rw-r--r-- | tests/tegra/meson.build | 3 |
3 files changed, 11 insertions, 3 deletions
diff --git a/tests/tegra/.gitignore b/tests/tegra/.gitignore index 5c5216c5..56cfb62b 100644 --- a/tests/tegra/.gitignore +++ b/tests/tegra/.gitignore @@ -1 +1 @@ -openclose +tegra-openclose diff --git a/tests/tegra/Makefile.am b/tests/tegra/Makefile.am index 6a343553..d56f06c3 100644 --- a/tests/tegra/Makefile.am +++ b/tests/tegra/Makefile.am @@ -20,5 +20,12 @@ LDADD = \ ../../libdrm.la \ libdrm-test.la +if HAVE_INSTALL_TESTS +bin_PROGRAMS = \ + tegra-openclose +else noinst_PROGRAMS = \ - openclose + tegra-openclose +endif + +tegra_openclose_SOURCES = openclose.c diff --git a/tests/tegra/meson.build b/tests/tegra/meson.build index 5d776f3c..665ba959 100644 --- a/tests/tegra/meson.build +++ b/tests/tegra/meson.build @@ -35,9 +35,10 @@ libdrm_test_tegra = static_library( ) openclose = executable( - 'openclose', + 'tegra-openclose', files('openclose.c'), include_directories : [inc_root, inc_drm, inc_tegra], c_args : warn_c_args, link_with : [libdrm, libdrm_tegra], + install : with_install_tests, ) |