diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d279ec1..41e3d7e 100644 --- a/configure.ac +++ b/configure.ac @@ -306,6 +306,21 @@ AS_IF([test "x$enable_debug" = "xyes"], [ ]) AC_SUBST(DEBUG_CXXFLAGS) +# ========== +# Unit tests +# ========== +AC_ARG_ENABLE([tests], + [AS_HELP_STRING([--enable-tests], [Build and run unit tests])], + [enable_tests="$enableval"], + [enable_tests=yes] +) +AS_IF([test "x$enable_tests" = "xyes"], [ + PKG_CHECK_MODULES([CPPUNIT], [cppunit]) +], []) +AC_SUBST([CPPUNIT_CFLAGS]) +AC_SUBST([CPPUNIT_LIBS]) +AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = "xyes"]) + # ============= # Documentation # ============= @@ -342,6 +357,7 @@ src/conv/text/vsd2text.rc src/conv/text/vss2text.rc src/lib/Makefile src/lib/libvisio.rc +src/test/Makefile inc/Makefile inc/libvisio/Makefile build/Makefile @@ -360,6 +376,7 @@ AC_MSG_NOTICE([ Build configuration: debug: ${enable_debug} docs: ${build_docs} + tests: ${enable_tests} tools: ${enable_tools} werror: ${enable_werror} ============================================================================== |