summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-09-08 10:03:58 (GMT)
committerBastien Nocera <hadess@hadess.net>2010-09-08 10:03:58 (GMT)
commit6bfc516553b8db1ed3a3d275eb3ff3f0bde24b48 (patch)
tree7cb2e4174ae4b5c821bb65a3c3225708b8bcd439
parentff842125c59ec87028bf53618b0a6acb310702e0 (diff)
Add test program for C++ support
So that we don't regress
-rw-r--r--configure.ac1
-rw-r--r--examples/Makefile.am5
-rw-r--r--examples/cpp-test.cpp11
3 files changed, 16 insertions, 1 deletions
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 <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+#include <libfprint/fprint.h>
+
+int main (int argc, char **argv)
+{
+ fp_init ();
+ return 0;
+}