diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-05-18 00:52:48 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-05-18 00:52:48 +0530 |
commit | 7d9385c3c5f091a29dc7afb40d5d98a3e42221ef (patch) | |
tree | e63bbda5ac2df985c51b5765b2e8b45050b9eb28 | |
parent | 234f224d8cef69a1fc6dc37059cbb31fc835c4c1 (diff) | |
download | libgd-7d9385c3c5f091a29dc7afb40d5d98a3e42221ef.tar.gz |
meson: Build test-tagged-entry manual tests
Useful for testing of libgd. Also means it is no longer an error to
build libgd as a standalone project.
-rw-r--r-- | meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 98ab8d2..6d1242c 100644 --- a/meson.build +++ b/meson.build @@ -4,7 +4,7 @@ project('libgd', 'c', ) if not meson.is_subproject() - error('This project is only intended to be used as a subproject!') + message('WARNING: This project is only intended to be used as a subproject!') endif pkglibdir = get_option('pkglibdir') @@ -16,3 +16,9 @@ libm = cc.find_library('m', required: false) libgd_include = include_directories('.') subdir('libgd') + +if get_option('with-tagged-entry') + foreach t : ['test-tagged-entry', 'test-tagged-entry-2'] + executable(t, t + '.c', dependencies : libgd_dep) + endforeach +endif |