From 6bfc516553b8db1ed3a3d275eb3ff3f0bde24b48 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 8 Sep 2010 11:03:58 +0100 Subject: [PATCH] Add test program for C++ support So that we don't regress --- configure.ac | 1 + examples/Makefile.am | 5 ++++- examples/cpp-test.cpp | 11 +++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 examples/cpp-test.cpp diff --git a/configure.ac b/configure.ac index c627241..714c44e 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,7 @@ AC_PROG_CC AC_PROG_LIBTOOL AC_C_INLINE AM_PROG_CC_C_O +AC_PROG_CXX AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions]) # Library versioning diff --git a/examples/Makefile.am b/examples/Makefile.am index 3f89134..b045ddb 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,5 +1,5 @@ INCLUDES = -I$(top_srcdir) -noinst_PROGRAMS = verify_live enroll verify img_capture +noinst_PROGRAMS = verify_live enroll verify img_capture cpp-test verify_live_SOURCES = verify_live.c verify_live_LDADD = ../libfprint/libfprint.la @@ -13,6 +13,9 @@ verify_LDADD = ../libfprint/libfprint.la img_capture_SOURCES = img_capture.c img_capture_LDADD = ../libfprint/libfprint.la +cpp_test_SOURCES = cpp-test.cpp +cpp_test_LDADD = ../libfprint/libfprint.la + if BUILD_X11_EXAMPLES noinst_PROGRAMS += img_capture_continuous diff --git a/examples/cpp-test.cpp b/examples/cpp-test.cpp new file mode 100644 index 0000000..1293613 --- /dev/null +++ b/examples/cpp-test.cpp @@ -0,0 +1,11 @@ +#include +#include +#include + +#include + +int main (int argc, char **argv) +{ + fp_init (); + return 0; +}