CppUnitLite can be installed along with gtsam with configure flag --enable-install-cppunitlite
parent
2b1f7f8446
commit
48ffb6aca9
|
@ -7,7 +7,16 @@ headers = TestHarness.h
|
||||||
sources = Failure.cpp SimpleString.cpp Test.cpp TestRegistry.cpp TestResult.cpp
|
sources = Failure.cpp SimpleString.cpp Test.cpp TestRegistry.cpp TestResult.cpp
|
||||||
headers += $(sources:.cpp=.h)
|
headers += $(sources:.cpp=.h)
|
||||||
|
|
||||||
CppUnitLitedir = $(pkgincludedir)/CppUnitLite
|
if ENABLE_INSTALL_CPPUNITLITE
|
||||||
noinst_LIBRARIES = libCppUnitLite.a
|
CppUnitLitedir = $(includedir)/CppUnitLite
|
||||||
|
lib_LIBRARIES = libCppUnitLite.a
|
||||||
|
CppUnitLite_HEADERS = $(headers)
|
||||||
libCppUnitLite_a_SOURCES = $(sources)
|
libCppUnitLite_a_SOURCES = $(sources)
|
||||||
|
else
|
||||||
|
noinst_LIBRARIES = libCppUnitLite.a
|
||||||
noinst_HEADERS = $(headers)
|
noinst_HEADERS = $(headers)
|
||||||
|
libCppUnitLite_a_SOURCES = $(sources)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
21
configure.ac
21
configure.ac
|
@ -68,6 +68,17 @@ AC_ARG_ENABLE([serialization],
|
||||||
|
|
||||||
AM_CONDITIONAL([ENABLE_SERIALIZATION], [test x$serialization = xtrue])
|
AM_CONDITIONAL([ENABLE_SERIALIZATION], [test x$serialization = xtrue])
|
||||||
|
|
||||||
|
# enable installation of CppUnitLite with gtsam
|
||||||
|
AC_ARG_ENABLE([install_cppunitlite],
|
||||||
|
[ --enable-install-cppunitlite Enable installation of CppUnitLite],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) install_cppunitlite=true ;;
|
||||||
|
no) install_cppunitlite=false ;;
|
||||||
|
*) AC_MSG_ERROR([bad value ${enableval} for --enable-install-cppunitlite]) ;;
|
||||||
|
esac],[install_cppunitlite=false])
|
||||||
|
|
||||||
|
AM_CONDITIONAL([ENABLE_INSTALL_CPPUNITLITE], [test x$install_cppunitlite = xtrue])
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
@ -102,16 +113,6 @@ AX_BOOST_BASE([1.40])
|
||||||
# ])
|
# ])
|
||||||
#AC_SUBST([toolbox])
|
#AC_SUBST([toolbox])
|
||||||
|
|
||||||
# ask for boost directory
|
|
||||||
#AC_ARG_WITH([boost],
|
|
||||||
# [AS_HELP_STRING([--with-boost],
|
|
||||||
# [specify the boost directory for installation (mandatory)])],
|
|
||||||
# [boost=$withval],
|
|
||||||
# [AC_MSG_FAILURE(
|
|
||||||
# [--with-boost has to be specified])
|
|
||||||
# ])
|
|
||||||
#AC_SUBST([boost])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([CppUnitLite/Makefile \
|
AC_CONFIG_FILES([CppUnitLite/Makefile \
|
||||||
gtsam/3rdparty/Makefile \
|
gtsam/3rdparty/Makefile \
|
||||||
gtsam/base/Makefile \
|
gtsam/base/Makefile \
|
||||||
|
|
Loading…
Reference in New Issue