add --disable-examples

Allow the user to disable build of examples

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
Fabrice Fontaine
2022-06-11 23:31:08 +02:00
parent f0383d50cd
commit 476dd4c4f7
2 changed files with 6 additions and 0 deletions

View File

@@ -122,6 +122,7 @@ EXTRA_DIST = \
tests/key_encrypted.pem \
tests/res_query_dump.c
if EXAMPLES
## Examples
noinst_PROGRAMS = \
examples/active \
@@ -165,6 +166,7 @@ examples_uuid_LDADD = $(STROPHE_LIBS)
examples_vcard_SOURCES = examples/vcard.c
examples_vcard_CFLAGS = $(STROPHE_FLAGS)
examples_vcard_LDADD = $(STROPHE_LIBS)
endif
## Tests