Add test program for C++ support

So that we don't regress
This commit is contained in:
Bastien Nocera 2010-09-08 11:03:58 +01:00
parent ff842125c5
commit 6bfc516553
3 changed files with 16 additions and 1 deletions

View file

@ -9,6 +9,7 @@ AC_PROG_CC
AC_PROG_LIBTOOL AC_PROG_LIBTOOL
AC_C_INLINE AC_C_INLINE
AM_PROG_CC_C_O AM_PROG_CC_C_O
AC_PROG_CXX
AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions]) AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions])
# Library versioning # Library versioning

View file

@ -1,5 +1,5 @@
INCLUDES = -I$(top_srcdir) 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_SOURCES = verify_live.c
verify_live_LDADD = ../libfprint/libfprint.la verify_live_LDADD = ../libfprint/libfprint.la
@ -13,6 +13,9 @@ verify_LDADD = ../libfprint/libfprint.la
img_capture_SOURCES = img_capture.c img_capture_SOURCES = img_capture.c
img_capture_LDADD = ../libfprint/libfprint.la img_capture_LDADD = ../libfprint/libfprint.la
cpp_test_SOURCES = cpp-test.cpp
cpp_test_LDADD = ../libfprint/libfprint.la
if BUILD_X11_EXAMPLES if BUILD_X11_EXAMPLES
noinst_PROGRAMS += img_capture_continuous noinst_PROGRAMS += img_capture_continuous

11
examples/cpp-test.cpp Normal file
View file

@ -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;
}