build exceptionhandling-example only if stacktrace is given; refs #7

This commit is contained in:
Marc Wäckerlin
2013-10-11 09:31:14 +00:00
parent 7cd37fbec7
commit fbd3a59c1f

View File

@@ -4,15 +4,20 @@
## 45678901234567890123456789012345678901234567890123456789012345678901234567890
exampledir = ${docdir}/examples
example_PROGRAMS = exceptionhandling smartpointer arguments
example_PROGRAMS = smartpointer arguments
if HAVE_STACKTRACE
example_PROGRAMS += exceptionhandling
endif
example_DATA = ${smartpointer_SOURCES} ${exceptionhandling_SOURCES} \
${arguments_SOURCES}
CPPFLAGS = -I${top_srcdir}/src
LDFLAGS = -L${top_builddir}/src
if HAVE_STACKTRACE
exceptionhandling_SOURCES = exceptionhandling.cxx
exceptionhandling_LDADD = ${top_builddir}/src/.libs/libmrw.la
endif
smartpointer_SOURCES = smartpointer.cxx
smartpointer_LDADD = ${top_builddir}/src/.libs/libmrw.la