[gnote] Add check for UnitTest++
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Add check for UnitTest++
- Date: Sun, 22 Jan 2017 12:23:50 +0000 (UTC)
commit b6f7677407a020f1ed3470a927fb314586936d52
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Jan 22 14:16:31 2017 +0200
Add check for UnitTest++
configure.ac | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c0bd431..946f4d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,7 @@ LIBGTKMM_VERSION=3.18
GTKSPELL_VERSION=3.0.0
BOOST_VERSION=1.34
LIBSECRET_VERSION=0.8
+UNITTESTCPP_VERSION=1.5.1
AC_PROG_CXX
AC_GNU_SOURCE
@@ -86,6 +87,12 @@ AM_CONDITIONAL(FIXED_GTKSPELL, test "$FIXED_GTKSPELL" = "yes")
PKG_CHECK_MODULES(LIBSECRET, [libsecret-1 >= $LIBSECRET_VERSION])
+PKG_CHECK_MODULES(UNITTESTCPP, [UnitTest++ >= $UNITTESTCPP_VERSION],
+ [HAVE_UNITTESTCPP="yes";AC_DEFINE([HAVE_UNITTESTCPP], [1], [Set if UnitTest++
library is available.])],
+ HAVE_UNITTESTCPP="no")
+AC_SUBST(UNITTESTCPP_CFLAGS)
+AC_SUBST(UNITTESTCPP_LIBS)
+AM_CONDITIONAL(HAVE_UNITTESTCPP, test "$HAVE_UNITTESTCPP" = "yes")
BOOST_REQUIRE([$BOOST_VERSION])
@@ -205,5 +212,6 @@ echo "
Options:
Spellchecking support: ${FIXED_GTKSPELL}
+ Unit test support: ${HAVE_UNITTESTCPP}
"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]